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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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