fix: fixes death explosion trigger on death (#2228)

This commit is contained in:
Bohica 2025-07-03 09:47:52 -07:00 committed by GitHub
parent 35faba5087
commit 8997130e57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,11 @@ public class DeathExplosion : AreaEffectMonsterAbility
public override void Trigger(MonsterAbilityTrigger trigger, BaseCreature source, Mobile target) public override void Trigger(MonsterAbilityTrigger trigger, BaseCreature source, Mobile target)
{ {
if (trigger != MonsterAbilityTrigger.Death)
{
return;
}
_exploding.Add(source); _exploding.Add(source);
source.FixedParticles(0x36BD, 20, 10, 5044, EffectLayer.Head); source.FixedParticles(0x36BD, 20, 10, 5044, EffectLayer.Head);
source.PlaySound(0x307); source.PlaySound(0x307);