heal sortof works... except it kills the patient.

This commit is contained in:
Chris Forbes
2009-12-28 10:59:00 +13:00
parent b4008af0ca
commit 8202f2cdc4
5 changed files with 14 additions and 10 deletions

View File

@@ -50,7 +50,10 @@ namespace OpenRa.Game.Traits
var prefix = IsProne(self) ? "prone-shoot-" : "shoot-";
anim.PlayThen(prefix + dir, () => inAttack = false);
if (anim.HasSequence(prefix + dir))
anim.PlayThen(prefix + dir, () => inAttack = false);
else if (anim.HasSequence("heal"))
anim.PlayThen("heal", () => inAttack = false);
}
public override void Tick(Actor self)