aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp2
-rw-r--r--src/game/Unit.cpp1
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 b0c20983efd..e3350940692 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -13252,7 +13252,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;