Merge pull request #9311 from atlimit8/Fix9310

DeathType Count check in Explodes
This commit is contained in:
reaperrr
2015-09-10 17:57:26 +02:00

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);