mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-20 17:58:20 +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 (
|
if (
|
||||||
(!RuleB(Bots, AllowBotEquipAnyRaceGear) && ((~item_data->Races) & GetPlayerRaceBit(bot_iter->GetRace()))) ||
|
(!RuleB(Bots, AllowBotEquipAnyRaceGear) && !(item_data->Races & GetPlayerRaceBit(bot_iter->GetBaseRace()))) ||
|
||||||
(!RuleB(Bots, AllowBotEquipAnyClassGear) && ((~item_data->Classes) & GetPlayerClassBit(bot_iter->GetClass())))
|
(!RuleB(Bots, AllowBotEquipAnyClassGear) && !(item_data->Classes & GetPlayerClassBit(bot_iter->GetClass())))
|
||||||
) {
|
) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user