ActorExts.AppearsFriendlyTo simplification

This commit is contained in:
atlimit8
2017-04-25 15:53:50 -05:00
parent 99f3f37afe
commit 6aaa7fa042

View File

@@ -47,7 +47,7 @@ namespace OpenRA.Mods.Common
if (self.EffectiveOwner != null && self.EffectiveOwner.Disguised && !toActor.Info.HasTraitInfo<IgnoresDisguiseInfo>()) if (self.EffectiveOwner != null && self.EffectiveOwner.Disguised && !toActor.Info.HasTraitInfo<IgnoresDisguiseInfo>())
return toActor.Owner.Stances[self.EffectiveOwner.Owner] == Stance.Ally; return toActor.Owner.Stances[self.EffectiveOwner.Owner] == Stance.Ally;
return stance == Stance.Ally; return false;
} }
public static bool AppearsHostileTo(this Actor self, Actor toActor) public static bool AppearsHostileTo(this Actor self, Actor toActor)