From 1338d21823b14bf3dc3e5cd671f33f17b166ad5d Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Wed, 14 Dec 2022 20:32:34 -0600 Subject: [PATCH] [Bug Fix] Fix trading with bots when in an illusion. (#2645) Trade check was not checking GetBaseRace and would fail if the bot's illusion couldn't equip the item. Co-authored-by: toxin06 <53322305+toxin06@users.noreply.github.com> --- zone/bot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 6c805193a..51f0fb05c 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -4761,7 +4761,7 @@ void Bot::PerformTradeWithClient(int16 begin_slot_id, int16 end_slot_id, Client* if ( !trade_instance->IsClassEquipable(GetClass()) || GetLevel() < trade_instance->GetItem()->ReqLevel || - (!trade_instance->IsRaceEquipable(GetRace()) && !RuleB(Bots, AllowBotEquipAnyRaceGear)) + (!trade_instance->IsRaceEquipable(GetBaseRace()) && !RuleB(Bots, AllowBotEquipAnyRaceGear)) ) { if (trade_event_exists) { event_trade.push_back(ClientTrade(trade_instance, trade_index));