mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
[Bug Fix] Fix trading with bots when in an illusion. (#2645)
Trade check was not checking GetBaseRace and would fail if the bot's illusion couldn't equip the item. Co-authored-by: toxin06 <53322305+toxin06@users.noreply.github.com>
This commit is contained in:
parent
0fd4d82553
commit
1338d21823
@ -4761,7 +4761,7 @@ void Bot::PerformTradeWithClient(int16 begin_slot_id, int16 end_slot_id, Client*
|
|||||||
if (
|
if (
|
||||||
!trade_instance->IsClassEquipable(GetClass()) ||
|
!trade_instance->IsClassEquipable(GetClass()) ||
|
||||||
GetLevel() < trade_instance->GetItem()->ReqLevel ||
|
GetLevel() < trade_instance->GetItem()->ReqLevel ||
|
||||||
(!trade_instance->IsRaceEquipable(GetRace()) && !RuleB(Bots, AllowBotEquipAnyRaceGear))
|
(!trade_instance->IsRaceEquipable(GetBaseRace()) && !RuleB(Bots, AllowBotEquipAnyRaceGear))
|
||||||
) {
|
) {
|
||||||
if (trade_event_exists) {
|
if (trade_event_exists) {
|
||||||
event_trade.push_back(ClientTrade(trade_instance, trade_index));
|
event_trade.push_back(ClientTrade(trade_instance, trade_index));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user