From 6aaa7fa042445ea7a16ba40aa983594d2f06e294 Mon Sep 17 00:00:00 2001 From: atlimit8 Date: Tue, 25 Apr 2017 15:53:50 -0500 Subject: [PATCH] ActorExts.AppearsFriendlyTo simplification --- OpenRA.Mods.Common/ActorExts.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/ActorExts.cs b/OpenRA.Mods.Common/ActorExts.cs index 0220493056..913e35f8d5 100644 --- a/OpenRA.Mods.Common/ActorExts.cs +++ b/OpenRA.Mods.Common/ActorExts.cs @@ -47,7 +47,7 @@ namespace OpenRA.Mods.Common if (self.EffectiveOwner != null && self.EffectiveOwner.Disguised && !toActor.Info.HasTraitInfo()) return toActor.Owner.Stances[self.EffectiveOwner.Owner] == Stance.Ally; - return stance == Stance.Ally; + return false; } public static bool AppearsHostileTo(this Actor self, Actor toActor)