From b59f5546906fb99c1b19bca5acdcf11b0952f5b7 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Mon, 17 Aug 2009 04:45:34 +0200 Subject: * Fix visual bug that makes client believe that his recently tamed pet has no talent points. --HG-- branch : trunk --- src/game/SpellEffects.cpp | 2 ++ src/game/Unit.cpp | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3