From 3c93abde44411f9c1da51f5df80255591df369f5 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 22 Jul 2018 17:27:40 +0200 Subject: [PATCH] Core/Spells: Leader of the Pack will now only proc while in Cat or Bear shapeshift form --- src/server/scripts/Spells/spell_druid.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp index aa94c34ab8..076e351ac1 100644 --- a/src/server/scripts/Spells/spell_druid.cpp +++ b/src/server/scripts/Spells/spell_druid.cpp @@ -1661,6 +1661,11 @@ class spell_dru_leader_of_the_pack : public AuraScript }); } + bool CheckProc(ProcEventInfo& /*eventInfo*/) + { + return (GetTarget()->GetShapeshiftForm() == FORM_CAT || GetTarget()->GetShapeshiftForm() == FORM_BEAR); + } + void HandleProc(AuraEffect const* aurEff, ProcEventInfo& /*eventInfo*/) { PreventDefaultAction(); @@ -1686,6 +1691,7 @@ class spell_dru_leader_of_the_pack : public AuraScript void Register() override { + DoCheckProc += AuraCheckProcFn(spell_dru_leader_of_the_pack::CheckProc); OnEffectProc += AuraEffectProcFn(spell_dru_leader_of_the_pack::HandleProc, EFFECT_0, SPELL_AURA_DUMMY); } };