diff options
author | Machiavelli <none@none> | 2009-08-17 04:45:34 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-08-17 04:45:34 +0200 |
commit | b59f5546906fb99c1b19bca5acdcf11b0952f5b7 (patch) | |
tree | 18282acbfc621e584e0a1c4b3282dc77e444df3b | |
parent | 05f2f1911a1e4647c91c357aa42489997fd5154c (diff) |
* Fix visual bug that makes client believe that his recently tamed pet has no talent points.
--HG--
branch : trunk
-rw-r--r-- | src/game/SpellEffects.cpp | 2 | ||||
-rw-r--r-- | src/game/Unit.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index fb54844430a..f805c7b2ac8 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -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) { diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 80ee7bd359b..d0a7e41abcb 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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; |