feat(Core): OnBeforeLootMoney hook (#13030)

This commit is contained in:
ZhengPeiRu21
2022-09-21 06:28:19 -06:00
committed by GitHub
parent a91b788304
commit 7a137767fa
3 changed files with 13 additions and 0 deletions

View File

@@ -146,6 +146,14 @@ void ScriptMgr::OnPlayerMoneyChanged(Player* player, int32& amount)
});
}
void ScriptMgr::OnBeforeLootMoney(Player* player, Loot* loot)
{
ExecuteScript<PlayerScript>([&](PlayerScript* script)
{
script->OnBeforeLootMoney(player, loot);
});
}
void ScriptMgr::OnGivePlayerXP(Player* player, uint32& amount, Unit* victim)
{
ExecuteScript<PlayerScript>([&](PlayerScript* script)