Add AllowBotEquipAnyClassGear to bot trades

This commit is contained in:
nytmyr
2024-11-14 20:09:19 -06:00
parent dbacd80760
commit aa7632d3df
+1 -1
View File
@@ -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))
) {