mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-18 15:58:21 +00:00
[Bots] Make ^itemuse use BaseRace (#5102)
This commit is contained in:
@@ -206,8 +206,8 @@ void bot_command_item_use(Client* c, const Seperator* sep)
|
||||
}
|
||||
|
||||
if (
|
||||
(!RuleB(Bots, AllowBotEquipAnyRaceGear) && ((~item_data->Races) & GetPlayerRaceBit(bot_iter->GetRace()))) ||
|
||||
(!RuleB(Bots, AllowBotEquipAnyClassGear) && ((~item_data->Classes) & GetPlayerClassBit(bot_iter->GetClass())))
|
||||
(!RuleB(Bots, AllowBotEquipAnyRaceGear) && !(item_data->Races & GetPlayerRaceBit(bot_iter->GetBaseRace()))) ||
|
||||
(!RuleB(Bots, AllowBotEquipAnyClassGear) && !(item_data->Classes & GetPlayerClassBit(bot_iter->GetClass())))
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user