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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);
});
}