fix(Scripts/Hyjal): Fix Doom spawning Doomguards twice on expire (#18968)

This commit is contained in:
Andrew
2024-05-28 19:39:05 -03:00
committed by GitHub
parent 7692b709ac
commit 9b363594e7

View File

@@ -126,7 +126,7 @@ class spell_azgalor_doom : public AuraScript
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
Unit* target = GetTarget();
if (GetTargetApplication()->GetRemoveMode() == AURA_REMOVE_BY_DEATH)
if (GetTargetApplication()->GetRemoveMode() == AURA_REMOVE_BY_DEATH && !IsExpired())
{
target->CastSpell(target, GetSpellInfo()->Effects[EFFECT_0].TriggerSpell, true);
}