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

@@ -168,6 +168,7 @@ void WorldSession::HandleLootMoneyOpcode(WorldPacket& /*recvData*/)
if (loot)
{
sScriptMgr->OnBeforeLootMoney(player, loot);
loot->NotifyMoneyRemoved();
if (shareMoney && player->GetGroup()) //item, pickpocket and players can be looted only single player
{