fix(Scripts/Spells): Moonkin Form passive aura should not proc off fr… (#12815)

...om AoE spells.
This commit is contained in:
UltraNix
2022-08-28 07:05:05 +02:00
committed by GitHub
parent 9ae2b93514
commit d1562d9f1e
2 changed files with 26 additions and 0 deletions

View File

@@ -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);
}