aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp
diff options
context:
space:
mode:
authorRochet2 <tqbattlenet@gmail.com>2014-10-23 11:24:08 +0300
committerRochet2 <tqbattlenet@gmail.com>2014-10-25 11:33:03 +0300
commitd508472046f9c6f93a401c978d04cb5039f5a6d4 (patch)
tree393cf67e218ffd923480e9bfd742f1cbf9b8955e /src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp
parent805be8ebba07c3280089a128f1764d49f6f84ab6 (diff)
AHBot related fixes
Fix rebuild command requiring a dummy value Fix ahbot config to normal Fix sellprice setting in core. Closes #13425
Diffstat (limited to 'src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp')
-rw-r--r--src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp b/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp
index 513b23afd70..e5e5facd30a 100644
--- a/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp
+++ b/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp
@@ -207,12 +207,12 @@ bool AuctionBotSeller::Initialize()
{
if (sAuctionBotConfig->GetConfig(CONFIG_AHBOT_BUYPRICE_SELLER))
{
- if (prototype->BuyPrice == 0)
+ if (prototype->SellPrice == 0)
continue;
}
else
{
- if (prototype->SellPrice == 0)
+ if (prototype->BuyPrice == 0)
continue;
}
}
@@ -706,7 +706,7 @@ void AuctionBotSeller::SetPricesOfItem(ItemTemplate const* itemProto, SellerConf
if (sellPrice == 0)
sellPrice = (buyPrice > 10 ? buyPrice / GetSellModifier(itemProto) : buyPrice);
- if (!sAuctionBotConfig->GetConfig(CONFIG_AHBOT_BUYPRICE_SELLER))
+ if (sAuctionBotConfig->GetConfig(CONFIG_AHBOT_BUYPRICE_SELLER))
buyPrice = sellPrice;
uint32 basePrice = (buyPrice * stackCount * priceRatio) / (itemProto->Class == 6 ? 200 : itemProto->BuyCount) / 100;