Core/Phases: Removed some of the usages of phasemask in the Pet code.

This commit is contained in:
Subv committed 2014-10-28 11:35:40 -05:00
1 parent 66a40f5e91
commit 44c14799f3
4 files changed
+12 -10

No files matched your search

+3
View File
@@ -13404,6 +13404,9 @@ bool Unit::InitTamedPet(Pet* pet, uint8 level, uint32 spell_id)
return false;
}
for (auto phase : GetPhases())
pet->SetInPhase(phase, false, true);
pet->GetCharmInfo()->SetPetNumber(sObjectMgr->GeneratePetNumber(), true);
// this enables pet details window (Shift+P)
pet->InitPetCreateSpells();