From 09b386a78621d177b28df24ca9e13ee25e6d042b Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 24 May 2009 12:16:12 -0500 Subject: [7886] Drop use table `petcreateinfo_spell` This is first commit in chain for remove oudated and not used pet functionality. * Use instead dropped table CreatureSpellData.dbc if creature_template.PetSpellDataId set (mostly hunter pets) * Use creature_template.spellN if not set creature_template.PetSpellDataId (mostly different summon creatures) * Fixed bug with not removing from action bar spell icon for not ranked unlearned spells. Note: summoned controllable creatures without PetSpellDataId must have expected spells in spellN feilds for creature_template. [7887] Drop pet spell teaching code, including field in character_pet. Author: VladimirMangos --HG-- branch : trunk --- src/game/PetAI.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/game/PetAI.cpp') diff --git a/src/game/PetAI.cpp b/src/game/PetAI.cpp index a5a3f28c92a..7851ee6773f 100644 --- a/src/game/PetAI.cpp +++ b/src/game/PetAI.cpp @@ -199,8 +199,6 @@ void PetAI::UpdateAI(const uint32 diff) } m_creature->AddCreatureSpellCooldown(spell->m_spellInfo->Id); - if(m_creature->isPet()) - ((Pet*)m_creature)->CheckLearning(spell->m_spellInfo->Id); spell->prepare(&targets); } -- cgit v1.2.3