[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?
This commit is contained in:
MortimerGreenwald
2025-02-28 13:54:38 -08:00
committed by GitHub
parent 2f7ca2cdc8
commit cb634cf57d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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) {