This commit is contained in:
Chris Forbes
2011-04-06 07:16:54 +12:00
parent 24a205d992
commit 9f3107f642
2 changed files with 9 additions and 5 deletions

View File

@@ -63,13 +63,17 @@ namespace OpenRA.Mods.RA.Buildings
return;
}
self.World.AddFrameEndTask(w => w.Add(new RepairIndicator(self)));
self.World.AddFrameEndTask(
w => w.Add(new RepairIndicator(self, Info.RepairInterval / 2)));
self.InflictDamage(self, -hpToRepair, null);
if (Health.DamageState == DamageState.Undamaged)
{
isRepairing = false;
return;
}
remainingTicks = Info.RepairInterval;
}
else