Skip to content

Commit

Permalink
pet id fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cohenaj194 committed Jun 27, 2024
1 parent 7be813f commit c6c96ba
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,11 @@ function Saddlebag:GetUpdatedListingsJson()
if (not has_value(private.ignoredAuctions, v["auctionID"]))
then
local item_data = {}
item_data.itemID = v["itemKey"]["itemID"]
item_data.price = v["buyoutAmount"]
item_data.auctionID = v["auctionID"]
storage.user_auctions[count] = item_data
elseif (v["status"] == 0) and (v["itemKey"]["itemID"] == 82800)
then
local item_data = {}
item_data.petID = v["itemKey"]["battlePetSpeciesID"]
if v["itemKey"]["battlePetSpeciesID"] then
item_data.petID = v["itemKey"]["battlePetSpeciesID"]
else
item_data.itemID = v["itemKey"]["itemID"]
end
item_data.price = v["buyoutAmount"]
item_data.auctionID = v["auctionID"]
storage.user_auctions[count] = item_data
Expand Down

0 comments on commit c6c96ba

Please sign in to comment.