DeathType Count check in Explodes
This commit is contained in:
@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
var warhead = e.Warhead as DamageWarhead;
|
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;
|
return;
|
||||||
|
|
||||||
var weaponName = ChooseWeaponForExplosion(self);
|
var weaponName = ChooseWeaponForExplosion(self);
|
||||||
|
|||||||
Reference in New Issue
Block a user