more ported bits

This commit is contained in:
Chris Forbes
2010-01-11 17:50:16 +13:00
parent 1c8961e041
commit cf6bb26f83
7 changed files with 14 additions and 14 deletions

View File

@@ -19,7 +19,7 @@ namespace OpenRa.Game.Traits.Activities
if (target.Owner == self.Owner)
{
if (target.Health == target.LegacyInfo.Strength)
if (target.Health == target.Info.Traits.WithInterface<OwnedActorInfo>().First().HP)
return NextActivity;
target.InflictDamage(self, -EngineerCapture.EngineerDamage, Rules.WarheadInfo["Super"]);
}