diff --git a/OpenRA.Game/Combat.cs b/OpenRA.Game/Combat.cs index 01fb78bee4..2108eaae75 100644 --- a/OpenRA.Game/Combat.cs +++ b/OpenRA.Game/Combat.cs @@ -125,6 +125,9 @@ namespace OpenRA static float GetDamageToInflict(Actor target, ProjectileArgs args, WarheadInfo warhead, float modifier) { + // don't hit air units with splash from ground explosions, etc + if (!WeaponValidForTarget(args.weapon, target)) return 0f; + var selectable = target.Info.Traits.GetOrDefault(); var radius = selectable != null ? selectable.Radius : 0; var distance = Math.Max(0, (target.CenterLocation - args.dest).Length - radius);