Shift Actor.Health onto a trait.
Known regressions: - cnc only - health bar colors - can't repair buildings
This commit is contained in:
@@ -47,7 +47,7 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
Game.Debug("{0} is defeated.".F(self.Owner.PlayerName));
|
||||
foreach (var a in self.World.Queries.OwnedBy[self.Owner])
|
||||
a.InflictDamage(a, a.Health, null);
|
||||
a.Kill(a);
|
||||
|
||||
self.Owner.Shroud.Disabled = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user