fix(Scripts/SunwellPlateau): Don't inflict Darkness damage if Darkness aura is removed by death. (#22223)

This commit is contained in:
Benjamin Jackson
2025-05-27 23:22:27 -04:00
committed by GitHub
parent a72e948c6b
commit 0d9708cfab

View File

@@ -1055,6 +1055,9 @@ class spell_kiljaeden_darkness_aura : public AuraScript
void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_EXPIRE)
return;
if (GetUnitOwner()->IsCreature())
GetUnitOwner()->ToCreature()->AI()->DoAction(ACTION_NO_KILL_TALK);