From aa7632d3df952d02fa79010237758703aa02f062 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Thu, 14 Nov 2024 20:09:19 -0600 Subject: [PATCH] Add AllowBotEquipAnyClassGear to bot trades --- zone/bot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index b4679b396..75e990d7d 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -4209,7 +4209,7 @@ void Bot::PerformTradeWithClient(int16 begin_slot_id, int16 end_slot_id, Client* } if ( - !trade_instance->IsClassEquipable(GetClass()) || + (!trade_instance->IsClassEquipable(GetClass()) && !RuleB(Bots, AllowBotEquipAnyClassGear))|| GetLevel() < trade_instance->GetItem()->ReqLevel || (!trade_instance->IsRaceEquipable(GetBaseRace()) && !RuleB(Bots, AllowBotEquipAnyRaceGear)) ) {