Fixed pet talents amount exploit

Closes issue #3273.

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-08-05 11:33:54 +02:00
parent e659c3faf3
commit a042b972ed
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -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();