Core update item packets (#1624)

This commit is contained in:
Yunfan Li
2025-09-11 13:43:13 +08:00
committed by GitHub
parent a41c1912ac
commit 11b96b51b7
6 changed files with 47 additions and 17 deletions

View File

@@ -9,6 +9,7 @@
#include "ItemUsageValue.h"
#include "ItemVisitors.h"
#include "Playerbots.h"
#include "ItemPackets.h"
class SellItemsVisitor : public IterateItemsVisitor
{
@@ -116,7 +117,10 @@ void SellAction::Sell(Item* item)
WorldPacket p;
p << vendorguid << itemguid << count;
bot->GetSession()->HandleSellItemOpcode(p);
WorldPackets::Item::SellItem nicePacket(std::move(p));
nicePacket.Read();
bot->GetSession()->HandleSellItemOpcode(nicePacket);
if (botAI->HasCheat(BotCheatMask::gold))
{