Skip to content

Commit

Permalink
Filter out auction items only when buy and sell price are both zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-wroe committed Sep 8, 2024
1 parent ae0c4a2 commit 866e9d2
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,19 +191,8 @@ bool AuctionBotSeller::Initialize()
}

// Filter out items with no buy/sell price unless otherwise flagged in the config.
if (!allowZero)
{
if (sAuctionBotConfig->GetConfig(CONFIG_AHBOT_BUYPRICE_SELLER))
{
if (prototype->SellPrice == 0)
continue;
}
else
{
if (prototype->BuyPrice == 0)
continue;
}
}
if (!allowZero && prototype->BuyPrice == 0 && prototype->SellPrice == 0)
continue;

// vendor filter
if (!sAuctionBotConfig->GetConfig(CONFIG_AHBOT_ITEMS_VENDOR))
Expand Down

0 comments on commit 866e9d2

Please sign in to comment.