blame nuke damage on the player actor, not the silo, to prevent retaliation

This commit is contained in:
Chris Forbes
2010-05-28 19:48:34 +12:00
parent 2ca9a936a3
commit 9b11e79592
2 changed files with 3 additions and 1 deletions

View File

@@ -93,7 +93,7 @@ namespace OpenRA.Mods.RA.Effects
void Explode(World world)
{
world.AddFrameEndTask(w => w.Remove(this));
Combat.DoExplosion(silo, "Atomic", pos.ToInt2(), 0);
Combat.DoExplosion(silo.Owner.PlayerActor, "Atomic", pos.ToInt2(), 0);
world.WorldActor.traits.Get<ScreenShaker>().AddEffect(20, pos, 5);
}