IsSpecial -> NonCombatant

This commit is contained in:
Paul Chote
2010-05-24 14:03:47 +12:00
parent 35ca5f80b2
commit 78455a3dce
8 changed files with 11 additions and 11 deletions

View File

@@ -40,7 +40,7 @@ namespace OpenRA.Mods.RA
var hasAnything = self.World.Queries.OwnedBy[self.Owner]
.WithTrait<MustBeDestroyed>().Any();
var hasLost = !hasAnything && !self.Owner.IsSpecial;
var hasLost = !hasAnything && !self.Owner.NonCombatant;
if (hasLost && !HasLost)
Surrender(self);