From f0b3ba8c12b349b49901b8182cd6b9fc846e5bce Mon Sep 17 00:00:00 2001 From: Tereneckla Date: Sun, 17 Nov 2024 23:51:17 +0100 Subject: [PATCH] remove unnecessary class assignment --- src/server/game/Entities/Pet/Pet.cpp | 6 ------ src/server/game/Entities/Player/Player.cpp | 1 - 2 files changed, 7 deletions(-) diff --git a/src/server/game/Entities/Pet/Pet.cpp b/src/server/game/Entities/Pet/Pet.cpp index 141eab8813a1e3..5f4d3057a586b9 100644 --- a/src/server/game/Entities/Pet/Pet.cpp +++ b/src/server/game/Entities/Pet/Pet.cpp @@ -306,12 +306,6 @@ bool Pet::LoadPetFromDB(Player* owner, uint32 petEntry, uint32 petnumber, bool c { case SUMMON_PET: 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) break; case HUNTER_PET: diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index d8f33c6fe6acc1..b208cbcf4380f8 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -9018,7 +9018,6 @@ Pet* Player::SummonPet(uint32 entry, float x, float y, float z, float ang, PetTy pet->GetCharmInfo()->SetPetNumber(pet_number, false); } - pet->SetUInt32Value(UNIT_FIELD_BYTES_0, 2048); pet->SetUInt32Value(UNIT_FIELD_PETEXPERIENCE, 0); pet->SetUInt32Value(UNIT_FIELD_PETNEXTLEVELEXP, 1000); pet->SetFullHealth();