prevent infantry going prone due to tib damage

This commit is contained in:
Chris Forbes
2010-10-06 17:37:23 +13:00
parent 1390bb7428
commit ce5cf93077
3 changed files with 4 additions and 1 deletions

View File

@@ -30,7 +30,8 @@ namespace OpenRA.Mods.RA
public void Damaged(Actor self, AttackInfo e)
{
if (e.Damage > 0) /* fix to allow healing via `damage` */
remainingProneTime = defaultProneTime;
if (!e.Warhead.PreventProne)
remainingProneTime = defaultProneTime;
}
public void Tick(Actor self)