diff --git a/OpenRA.Mods.Common/Warheads/CreateEffectWarhead.cs b/OpenRA.Mods.Common/Warheads/CreateEffectWarhead.cs index 6863f92587..4d0304ca2d 100644 --- a/OpenRA.Mods.Common/Warheads/CreateEffectWarhead.cs +++ b/OpenRA.Mods.Common/Warheads/CreateEffectWarhead.cs @@ -91,6 +91,9 @@ namespace OpenRA.Mods.Common.Warheads public override void DoImpact(Target target, Actor firedBy, IEnumerable damageModifiers) { + if (!target.IsValidFor(firedBy)) + return; + var pos = target.CenterPosition; var world = firedBy.World; var targetTile = world.Map.CellContaining(pos);