fix(Core/Pet): Remove unnecessary Pet Class reassignments (#20614)
remove unnecessary class assignment
This commit is contained in:
@@ -306,12 +306,6 @@ bool Pet::LoadPetFromDB(Player* owner, uint32 petEntry, uint32 petnumber, bool c
|
|||||||
{
|
{
|
||||||
case SUMMON_PET:
|
case SUMMON_PET:
|
||||||
petlevel = owner->GetLevel();
|
petlevel = owner->GetLevel();
|
||||||
|
|
||||||
if (IsPetGhoul())
|
|
||||||
SetUInt32Value(UNIT_FIELD_BYTES_0, 0x400); // class = rogue
|
|
||||||
else
|
|
||||||
SetUInt32Value(UNIT_FIELD_BYTES_0, 0x800); // class = mage
|
|
||||||
|
|
||||||
ReplaceAllUnitFlags(UNIT_FLAG_PLAYER_CONTROLLED); // this enables popup window (pet dismiss, cancel)
|
ReplaceAllUnitFlags(UNIT_FLAG_PLAYER_CONTROLLED); // this enables popup window (pet dismiss, cancel)
|
||||||
break;
|
break;
|
||||||
case HUNTER_PET:
|
case HUNTER_PET:
|
||||||
|
|||||||
@@ -9019,7 +9019,6 @@ Pet* Player::SummonPet(uint32 entry, float x, float y, float z, float ang, PetTy
|
|||||||
pet->GetCharmInfo()->SetPetNumber(pet_number, false);
|
pet->GetCharmInfo()->SetPetNumber(pet_number, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
pet->SetUInt32Value(UNIT_FIELD_BYTES_0, 2048);
|
|
||||||
pet->SetUInt32Value(UNIT_FIELD_PETEXPERIENCE, 0);
|
pet->SetUInt32Value(UNIT_FIELD_PETEXPERIENCE, 0);
|
||||||
pet->SetUInt32Value(UNIT_FIELD_PETNEXTLEVELEXP, 1000);
|
pet->SetUInt32Value(UNIT_FIELD_PETNEXTLEVELEXP, 1000);
|
||||||
pet->SetFullHealth();
|
pet->SetFullHealth();
|
||||||
|
|||||||
Reference in New Issue
Block a user