Core/Pet: load template immunities when creating (except for hunters)

Fixes #19275

(cherry picked from commit e33263c677)
This commit is contained in:
ariel-
2017-03-17 13:12:37 -03:00
committed by funjoker
parent c16cebca64
commit 053d0cfda5

View File

@@ -375,6 +375,8 @@ bool Pet::LoadPetFromDB(Player* owner, uint32 petEntry, uint32 petnumber, bool c
if (owner->GetTypeId() == TYPEID_PLAYER && isControlled() && !isTemporarySummoned() && (getPetType() == SUMMON_PET || getPetType() == HUNTER_PET))
owner->ToPlayer()->SetLastPetNumber(petId);
// must be after SetMinion (owner guid check)
LoadMechanicTemplateImmunity();
m_loading = false;
return true;