Make battleground join / arena join / loot money session packet (#1178)

* Make battleground / arena join session packet

* Loot money

* Avoid aoe crash
This commit is contained in:
Yunfan Li
2025-04-08 10:11:03 +08:00
committed by GitHub
parent 2fced71069
commit 2f3f8d565c
3 changed files with 18 additions and 9 deletions

View File

@@ -356,8 +356,9 @@ bool StoreLootAction::Execute(Event event)
if (gold > 0)
{
WorldPacket packet(CMSG_LOOT_MONEY, 0);
bot->GetSession()->HandleLootMoneyOpcode(packet);
WorldPacket* packet = new WorldPacket(CMSG_LOOT_MONEY, 0);
bot->GetSession()->QueuePacket(packet);
// bot->GetSession()->HandleLootMoneyOpcode(packet);
}
for (uint8 i = 0; i < items; ++i)