* Fix visual bug that makes client believe that his recently tamed pet has no talent points.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2009-08-17 04:45:34 +02:00
parent 05f2f1911a
commit b59f554690
2 changed files with 2 additions and 1 deletions
+2
View File
@@ -4046,6 +4046,8 @@ void Spell::EffectTameCreature(uint32 /*i*/)
// caster have pet now
m_caster->SetMinion(pet, true);
pet->InitTalentForLevel();
if(m_caster->GetTypeId() == TYPEID_PLAYER)
{
-1
View File
@@ -13242,7 +13242,6 @@ Pet* Unit::CreateTamedPetFrom(Creature* creatureTarget,uint32 spell_id)
// this enables pet details window (Shift+P)
pet->InitPetCreateSpells();
//pet->InitLevelupSpellsForLevel();
pet->InitTalentForLevel();
pet->SetHealth(pet->GetMaxHealth());
return pet;