mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-14 00:23:50 +00:00
fix(auction): resolve item GUID with fallback and gate packet format
auctionSellItem now resolves the item GUID internally via backpackSlotGuids_ with resolveOnlineItemGuid fallback, matching the pattern used by vendor sell and item use. Previously the UI passed the GUID directly from getBackpackItemGuid() with no fallback, so items with unset slot GUIDs silently failed to list. Also gates CMSG_AUCTION_SELL_ITEM format by expansion: Classic/TBC omits the itemCount and stackCount fields that WotLK requires.
This commit is contained in:
parent
ac5c61203d
commit
345b41b810
7 changed files with 40 additions and 22 deletions
|
|
@ -6640,9 +6640,9 @@ void GameHandler::auctionSearch(const std::string& name, uint8_t levelMin, uint8
|
|||
if (inventoryHandler_) inventoryHandler_->auctionSearch(name, levelMin, levelMax, quality, itemClass, itemSubClass, invTypeMask, usableOnly, offset);
|
||||
}
|
||||
|
||||
void GameHandler::auctionSellItem(uint64_t itemGuid, uint32_t stackCount,
|
||||
uint32_t bid, uint32_t buyout, uint32_t duration) {
|
||||
if (inventoryHandler_) inventoryHandler_->auctionSellItem(itemGuid, stackCount, bid, buyout, duration);
|
||||
void GameHandler::auctionSellItem(int backpackIndex, uint32_t bid,
|
||||
uint32_t buyout, uint32_t duration) {
|
||||
if (inventoryHandler_) inventoryHandler_->auctionSellItem(backpackIndex, bid, buyout, duration);
|
||||
}
|
||||
|
||||
void GameHandler::auctionPlaceBid(uint32_t auctionId, uint32_t amount) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue