Fixes AI units hunting down Missile Silo/Temple of Nod after being damaged by nuke

This commit is contained in:
reaperrr
2014-05-16 17:30:01 +02:00
parent bad6a99caf
commit bbf2364bba
2 changed files with 4 additions and 4 deletions

View File

@@ -77,7 +77,7 @@ namespace OpenRA.Mods.RA
var rb = self.Trait<RenderSimple>();
rb.PlayCustomAnim(self, "active");
self.World.AddFrameEndTask(w => w.Add(new NukeLaunch(self, npi.MissileWeapon,
self.World.AddFrameEndTask(w => w.Add(new NukeLaunch(self.Owner, npi.MissileWeapon,
self.CenterPosition + body.LocalToWorld(npi.SpawnOffset),
order.TargetLocation.CenterPosition,
npi.FlightVelocity, npi.FlightDelay, npi.SkipAscent)));