diff options
author | megamage <none@none> | 2009-05-24 12:16:12 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-24 12:16:12 -0500 |
commit | 09b386a78621d177b28df24ca9e13ee25e6d042b (patch) | |
tree | d7e68d961d693034b0dfd4ecb027194cdc824d61 /src/game/World.cpp | |
parent | aa67033cc71c536f4d0f4c1cf6d6444d48103371 (diff) |
[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
Diffstat (limited to 'src/game/World.cpp')
-rw-r--r-- | src/game/World.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game/World.cpp b/src/game/World.cpp index b6cda4ee067..2a08f03c23f 100644 --- a/src/game/World.cpp +++ b/src/game/World.cpp @@ -1255,15 +1255,18 @@ void World::SetInitialWorldSettings() sLog.outString( "Loading Points Of Interest Data..." ); objmgr.LoadPointsOfInterest(); - sLog.outString( "Loading Pet Create Spells..." ); - objmgr.LoadPetCreateSpells(); - sLog.outString( "Loading Creature Data..." ); objmgr.LoadCreatures(); sLog.outString( "Loading Creature Linked Respawn..." ); objmgr.LoadCreatureLinkedRespawn(); // must be after LoadCreatures() + sLog.outString( "Loading pet levelup spells..." ); + spellmgr.LoadPetLevelupSpellMap(); + + sLog.outString( "Loading pet default spell additional to levelup spells..." ); + spellmgr.LoadPetDefaultSpells(); + sLog.outString( "Loading Creature Addon Data..." ); sLog.outString(); objmgr.LoadCreatureAddons(); // must be after LoadCreatureTemplates() and LoadCreatures() @@ -1333,9 +1336,6 @@ void World::SetInitialWorldSettings() sLog.outString( "Loading spell pet auras..." ); spellmgr.LoadSpellPetAuras(); - sLog.outString( "Loading pet levelup spells..." ); - spellmgr.LoadPetLevelupSpellMap(); - sLog.outString( "Loading spell extra attributes...(TODO)" ); spellmgr.LoadSpellCustomAttr(); |