mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 01:29:07 +00:00
feat(Core/Scripts): added OnAfterSpecSlotChanged hook (#17637)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user