Fixed pet talents amount exploit
Closes issue #3273. --HG-- branch : trunk
This commit is contained in:
@@ -301,6 +301,7 @@ bool Pet::LoadPetFromDB(Player* owner, uint32 petentry, uint32 petnumber, bool c
|
||||
m_charmInfo->LoadPetActionBar(fields[13].GetCppString());
|
||||
|
||||
_LoadSpells();
|
||||
InitTalentForLevel(); // re-init to check talent count
|
||||
_LoadSpellCooldowns();
|
||||
LearnPetPassives();
|
||||
InitLevelupSpellsForLevel();
|
||||
|
||||
@@ -23806,6 +23806,9 @@ void Player::ActivateSpec(uint8 spec)
|
||||
|
||||
|
||||
ResummonPetTemporaryUnSummonedIfAny();
|
||||
if (Pet* pPet = GetPet())
|
||||
pPet->InitTalentForLevel(); // not processed with aura removal because pet was not active
|
||||
|
||||
SendActionButtons(1);
|
||||
|
||||
Powers pw = getPowerType();
|
||||
|
||||
Reference in New Issue
Block a user