[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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -4315,7 +4315,7 @@ bool NPC::CanPetTakeItem(const EQ::ItemInstance *inst)
return false;
}
if (!IsPetOwnerClient() && !IsCharmedPet()) {
if (!IsPetOwnerOfClientBot() && !IsCharmedPet()) {
return false;
}

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) {