mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
[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:
parent
2f7ca2cdc8
commit
cb634cf57d
@ -4315,7 +4315,7 @@ bool NPC::CanPetTakeItem(const EQ::ItemInstance *inst)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!IsPetOwnerClient() && !IsCharmedPet()) {
|
if (!IsPetOwnerOfClientBot() && !IsCharmedPet()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -551,7 +551,7 @@ void Client::FinishTrade(Mob* tradingWith, bool finalizer, void* event_entry, st
|
|||||||
|
|
||||||
auto with = tradingWith->CastToNPC();
|
auto with = tradingWith->CastToNPC();
|
||||||
const EQ::ItemData *item = inst->GetItem();
|
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)) {
|
if (is_pet && with->CanPetTakeItem(inst)) {
|
||||||
// pets need to look inside bags and try to equip items found there
|
// pets need to look inside bags and try to equip items found there
|
||||||
if (item->IsClassBag() && item->BagSlots > 0) {
|
if (item->IsClassBag() && item->BagSlots > 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user