fix(Core/PacketIO): Implemented CMSG_BUSY_TRADE and CMSG_IGNORE_TRADE. (#21385)

This commit is contained in:
Mykhailo Redko 2025-02-10 18:12:38 +02:00 committed by GitHub
parent 91cd42ef91
commit 017cfb7b4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 18 deletions

View file

@ -1165,7 +1165,7 @@ bool Player::UpdatePosition(float x, float y, float z, float orientation,
SetGroupUpdateFlag(GROUP_UPDATE_FLAG_POSITION);
if (GetTrader() && !IsWithinDistInMap(GetTrader(), INTERACTION_DISTANCE))
GetSession()->SendCancelTrade();
GetSession()->SendCancelTrade(TRADE_STATUS_TRADE_CANCELED);
CheckAreaExploreAndOutdoor();