Rewrite ActorInit queries.
This commit is contained in:
@@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public FallsToEarth(ActorInitializer init, FallsToEarthInfo info)
|
||||
{
|
||||
this.info = info;
|
||||
effectiveOwner = init.Contains<EffectiveOwnerInit>() ? init.Get<EffectiveOwnerInit, Player>() : init.Self.Owner;
|
||||
effectiveOwner = init.GetValue<EffectiveOwnerInit, Player>(info, init.Self.Owner);
|
||||
}
|
||||
|
||||
// We return init.Self.Owner if there's no effective owner
|
||||
|
||||
Reference in New Issue
Block a user