DeathType Count check in Explodes

This commit is contained in:
atlimit8
2015-09-09 18:35:55 -05:00
parent aae3c8ef7d
commit 33915fb271

View File

@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Common.Traits
return;
var warhead = e.Warhead as DamageWarhead;
if (warhead != null && !warhead.DamageTypes.Overlaps(info.DeathType))
if (info.DeathType.Count > 0 && warhead != null && !warhead.DamageTypes.Overlaps(info.DeathType))
return;
var weaponName = ChooseWeaponForExplosion(self);