Added missing stance check.

This commit is contained in:
WolfGaming
2014-12-01 09:57:24 +00:00
parent 2e33d12135
commit 22ab93b549

View File

@@ -125,6 +125,10 @@ namespace OpenRA.Mods.RA
if (a == self || a.Destroyed)
return;
var stance = self.Owner.Stances[a.Owner];
if (!info.ValidStances.HasFlag(stance))
return;
var um = a.TraitOrDefault<UpgradeManager>();
if (um != null)
foreach (var u in info.Upgrades)