Replace usage of the Stances dict by a method call
This commit is contained in:
@@ -105,7 +105,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (byPlayer == null)
|
||||
return true;
|
||||
|
||||
var stance = self.Owner.Stances[byPlayer];
|
||||
var stance = self.Owner.RelationshipWith(byPlayer);
|
||||
return info.AlwaysVisibleStances.HasStance(stance) || IsVisibleInner(self, byPlayer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user