Core/Phases: some cleanup
- implemented CopyPhaseFrom(obj)
This commit is contained in:
1 parent
4fab55d703
commit
5993b946c9
16 files changed
+43
-59
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user