Core/Phases: some cleanup

- implemented CopyPhaseFrom(obj)
This commit is contained in:
Rat committed 2014-10-30 13:35:12 +01:00
1 parent 4fab55d703
commit 5993b946c9
16 files changed
+43 -59

No files matched your search

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