mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 13:16:39 +00:00
Add AllowBotEquipAnyClassGear to bot trades
This commit is contained in:
+1
-1
@@ -4209,7 +4209,7 @@ void Bot::PerformTradeWithClient(int16 begin_slot_id, int16 end_slot_id, Client*
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!trade_instance->IsClassEquipable(GetClass()) ||
|
(!trade_instance->IsClassEquipable(GetClass()) && !RuleB(Bots, AllowBotEquipAnyClassGear))||
|
||||||
GetLevel() < trade_instance->GetItem()->ReqLevel ||
|
GetLevel() < trade_instance->GetItem()->ReqLevel ||
|
||||||
(!trade_instance->IsRaceEquipable(GetBaseRace()) && !RuleB(Bots, AllowBotEquipAnyRaceGear))
|
(!trade_instance->IsRaceEquipable(GetBaseRace()) && !RuleB(Bots, AllowBotEquipAnyRaceGear))
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user