fix(Scripts/SunwellPlateau): Don't inflict Darkness damage if Darkness aura is removed by death. (#22223)
This commit is contained in:
parent
a72e948c6b
commit
0d9708cfab
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue