From 183bf7ae8e786e3e0ef750ce8c702637591a0597 Mon Sep 17 00:00:00 2001 From: Gabriel Comeau Date: Sun, 15 Dec 2024 14:03:46 -0500 Subject: [PATCH] Allow bots to trade conjured items (#781) Since they didn't have any sell value you couldn't get a bot to give you a healthstone or conjured food/water. This change allows them to be traded to you without altering any of the other logic for bot trades. --- src/strategy/actions/TradeStatusAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/actions/TradeStatusAction.cpp b/src/strategy/actions/TradeStatusAction.cpp index 4076277c..577d46d1 100644 --- a/src/strategy/actions/TradeStatusAction.cpp +++ b/src/strategy/actions/TradeStatusAction.cpp @@ -207,7 +207,7 @@ bool TradeStatusAction::CheckTrade() for (uint32 slot = 0; slot < TRADE_SLOT_TRADED_COUNT; ++slot) { Item* item = bot->GetTradeData()->GetItem((TradeSlots)slot); - if (item && !item->GetTemplate()->SellPrice) + if (item && !item->GetTemplate()->SellPrice && !item->GetTemplate()->IsConjuredConsumable()) { std::ostringstream out; out << chat->FormatItem(item->GetTemplate()) << " - This is not for sale";