fix(Scripts/SunwellPlateau): Don't inflict Darkness damage if Darkness aura is removed by death. (#22223)
This commit is contained in:
@@ -1055,6 +1055,9 @@ class spell_kiljaeden_darkness_aura : public AuraScript
|
|||||||
|
|
||||||
void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||||
{
|
{
|
||||||
|
if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_EXPIRE)
|
||||||
|
return;
|
||||||
|
|
||||||
if (GetUnitOwner()->IsCreature())
|
if (GetUnitOwner()->IsCreature())
|
||||||
GetUnitOwner()->ToCreature()->AI()->DoAction(ACTION_NO_KILL_TALK);
|
GetUnitOwner()->ToCreature()->AI()->DoAction(ACTION_NO_KILL_TALK);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user