mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
fix(Scripts/Spells): Moonkin Form passive aura should not proc off fr… (#12815)
...om AoE spells.
This commit is contained in:
@@ -1150,6 +1150,27 @@ class spell_dru_berserk : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
// 24905 - Moonkin Form (Passive)
|
||||
class spell_dru_moonkin_form_passive_proc : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_dru_moonkin_form_passive_proc);
|
||||
|
||||
bool CheckProc(ProcEventInfo& eventInfo)
|
||||
{
|
||||
if (SpellInfo const* spellInfo = eventInfo.GetSpellInfo())
|
||||
{
|
||||
return !spellInfo->IsAffectingArea();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
DoCheckProc += AuraCheckProcFn(spell_dru_moonkin_form_passive_proc::CheckProc);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_druid_spell_scripts()
|
||||
{
|
||||
RegisterSpellScript(spell_dru_bear_form_passive);
|
||||
@@ -1185,4 +1206,5 @@ void AddSC_druid_spell_scripts()
|
||||
RegisterSpellScript(spell_dru_typhoon);
|
||||
RegisterSpellScript(spell_dru_t10_restoration_4p_bonus);
|
||||
RegisterSpellScript(spell_dru_wild_growth);
|
||||
RegisterSpellScript(spell_dru_moonkin_form_passive_proc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user