From cb634cf57d7c53e25260eaa50f1c7919e05df64b Mon Sep 17 00:00:00 2001 From: MortimerGreenwald <110543605+MortimerGreenwald@users.noreply.github.com> Date: Fri, 28 Feb 2025 13:54:38 -0800 Subject: [PATCH] [Bug Fix] Fix Trading Items to Bot Pets (#4721) Small change using IsPetOwnerOfClientBot() instead of just IsPetOwnerClient Can bot pet take item? not before, but hopefully now? --- zone/npc.cpp | 2 +- zone/trading.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/npc.cpp b/zone/npc.cpp index 5e7992484..b73e726d8 100644 --- a/zone/npc.cpp +++ b/zone/npc.cpp @@ -4315,7 +4315,7 @@ bool NPC::CanPetTakeItem(const EQ::ItemInstance *inst) return false; } - if (!IsPetOwnerClient() && !IsCharmedPet()) { + if (!IsPetOwnerOfClientBot() && !IsCharmedPet()) { return false; } diff --git a/zone/trading.cpp b/zone/trading.cpp index 0cdb17bbf..5fd4eec37 100644 --- a/zone/trading.cpp +++ b/zone/trading.cpp @@ -551,7 +551,7 @@ void Client::FinishTrade(Mob* tradingWith, bool finalizer, void* event_entry, st auto with = tradingWith->CastToNPC(); const EQ::ItemData *item = inst->GetItem(); - const bool is_pet = with->IsPetOwnerClient() || with->IsCharmedPet(); + const bool is_pet = with->IsPetOwnerOfClientBot() || with->IsCharmedPet(); if (is_pet && with->CanPetTakeItem(inst)) { // pets need to look inside bags and try to equip items found there if (item->IsClassBag() && item->BagSlots > 0) {