From a5d34754adef1bdab9645217b7995dc02cf457a4 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 28 Mar 2009 09:48:45 -0600 Subject: [PATCH] *Fix broken pet-related spells. --HG-- branch : trunk --- src/game/Unit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 53ee72a121e..7b97c74172f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -8258,11 +8258,11 @@ Guardian* Unit::GetGuardianPet() const { if(uint64 pet_guid = GetPetGUID()) { - if(Creature* pet = ObjectAccessor::GetCreature(*this, pet_guid)) + if(Creature* pet = ObjectAccessor::GetCreatureOrPetOrVehicle(*this, pet_guid)) if(pet->HasSummonMask(SUMMON_MASK_GUARDIAN)) return (Guardian*)pet; - sLog.outError("Player::GetPet: Pet %u not exist.",GUID_LOPART(pet_guid)); + sLog.outError("Unit::GetGuardianPet: Pet %u not exist.",GUID_LOPART(pet_guid)); const_cast(this)->SetPetGUID(0); }