Add an `Undamaged' damagestate to simplify things related to healing.
This commit is contained in:
@@ -24,7 +24,7 @@ namespace OpenRA.Mods.RA.Activities
|
||||
{
|
||||
if (target == null || target.IsDead()) return NextActivity;
|
||||
var health = target.traits.Get<Health>();
|
||||
if (health.HP == health.MaxHP)
|
||||
if (health.ExtendedDamageState == ExtendedDamageState.Undamaged)
|
||||
return NextActivity;
|
||||
|
||||
target.InflictDamage(self, -health.MaxHP, null);
|
||||
|
||||
Reference in New Issue
Block a user