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

Fixes #19275
This commit is contained in:
ariel-
2017-03-17 13:12:37 -03:00
parent 7a38eaa5a1
commit e33263c677

View File

@@ -369,6 +369,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;