Shift Actor.Health onto a trait.
Known regressions: - cnc only - health bar colors - can't repair buildings
This commit is contained in:
@@ -82,7 +82,7 @@ namespace OpenRA.Mods.Cnc
|
||||
|
||||
public void Damaged (Actor self, AttackInfo e)
|
||||
{
|
||||
if (self.IsDead)
|
||||
if (e.DamageState == DamageState.Dead)
|
||||
CancelDock(self, dockedHarv);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user