[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.
This commit is contained in:
VladimirMangos 2009-05-24 06:28:46 +04:00
parent 37f8cea0a1
commit 8171bb57dd
11 changed files with 206 additions and 58 deletions

View file

@ -3572,7 +3572,7 @@ void ObjectMgr::LoadPetCreateSpells()
sLog.outString();
sLog.outString( ">> Loaded 0 pet create spells" );
sLog.outErrorDb("`petcreateinfo_spell` table is empty!");
//sLog.outErrorDb("`petcreateinfo_spell` table is empty!");
return;
}
@ -3644,6 +3644,7 @@ void ObjectMgr::LoadPetCreateSpells()
sLog.outString();
sLog.outString( ">> Loaded %u pet create spells", count );
sLog.outErrorDb("`petcreateinfo_spell` table use deprecated! Must be empty!");
}
void ObjectMgr::LoadScripts(ScriptMapMap& scripts, char const* tablename)