feat(Core/Scripting): Implement OnLoadSpellCustomAttr global hook (#10469)

This commit is contained in:
Skjalf
2022-01-31 18:03:42 -03:00
committed by GitHub
parent 0377b71e16
commit 4c5aceedbd
3 changed files with 15 additions and 0 deletions

View File

@@ -153,3 +153,11 @@ bool ScriptMgr::OnSpellHealingBonusTakenNegativeModifiers(Unit const* target, Un
return false;
}
void ScriptMgr::OnLoadSpellCustomAttr(SpellInfo* spell)
{
ExecuteScript<GlobalScript>([&](GlobalScript* script)
{
script->OnLoadSpellCustomAttr(spell);
});
}