Zombie prevention

This commit is contained in:
Paul Chote
2010-07-30 10:21:19 +12:00
parent 0580dc4adf
commit 48c5803198
2 changed files with 5 additions and 1 deletions

View File

@@ -26,6 +26,9 @@ namespace OpenRA.Mods.RA
public void Tick(Actor self)
{
if (self.IsDead())
return;
var info = self.Info.Traits.Get<SelfHealingInfo>();
if (self.traits.Get<Health>().HPFraction >= info.HealIfBelow)
return;