feat(Core/Scripts): added OnAfterSpecSlotChanged hook (#17637)

This commit is contained in:
KJack 2023-11-07 11:46:08 -05:00 committed by GitHub
parent 95d9e52440
commit f417a166bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View file

@ -153,6 +153,14 @@ void ScriptMgr::OnPlayerTalentsReset(Player* player, bool noCost)
});
}
void ScriptMgr::OnAfterSpecSlotChanged(Player* player, uint8 newSlot)
{
ExecuteScript<PlayerScript>([=](PlayerScript* script)
{
script->OnAfterSpecSlotChanged(player, newSlot);
});
}
void ScriptMgr::OnPlayerMoneyChanged(Player* player, int32& amount)
{
ExecuteScript<PlayerScript>([&](PlayerScript* script)