fix(DB/Creature): Hellfire Peninsula - Stonescythe mobs (#17604)

fix(DB/Creature): HFP - Stonescythe mobs
This commit is contained in:
avarishd
2023-11-02 13:54:11 +02:00
committed by GitHub
parent bc688c2a51
commit 9c09ddc3df
2 changed files with 374 additions and 1 deletions

View File

@@ -1536,7 +1536,8 @@ private:
enum DesperateDefense
{
SPELL_DESPERATE_RAGE = 33898
SPELL_DESPERATE_RAGE = 33898,
SPELL_SERVERSIDE_DESPERAT_DEFENSE = 33897 // Root and Pacify
};
// 33896 - Desperate Defense
@@ -1555,9 +1556,15 @@ class spell_item_desperate_defense : public AuraScript
GetTarget()->CastSpell(GetTarget(), SPELL_DESPERATE_RAGE, true, nullptr, aurEff);
}
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
GetTarget()->RemoveAurasDueToSpell(SPELL_SERVERSIDE_DESPERAT_DEFENSE);
}
void Register() override
{
OnEffectProc += AuraEffectProcFn(spell_item_desperate_defense::HandleProc, EFFECT_2, SPELL_AURA_PROC_TRIGGER_SPELL);
OnEffectRemove += AuraEffectRemoveFn(spell_item_desperate_defense::OnRemove, EFFECT_0, SPELL_AURA_SCHOOL_ABSORB, AURA_EFFECT_HANDLE_REAL);
}
};