feat(Core): OnBeforeLootMoney hook (#13030)
This commit is contained in:
parent
a91b788304
commit
7a137767fa
3 changed files with 13 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue