[8101] Prevent use talents as quest rewards or spell_learn_spell learned spells. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-07-01 18:07:57 -05:00
parent e1d93bd00f
commit de4faabbcb
2 changed files with 25 additions and 5 deletions

View File

@@ -1680,7 +1680,13 @@ void SpellMgr::LoadSpellLearnSpells()
if(!sSpellStore.LookupEntry(node.spell))
{
sLog.outErrorDb("Spell %u listed in `spell_learn_spell` does not exist",node.spell);
sLog.outErrorDb("Spell %u listed in `spell_learn_spell` learning not existed spell %u",spell_id,node.spell);
continue;
}
if(GetTalentSpellCost(node.spell))
{
sLog.outErrorDb("Spell %u listed in `spell_learn_spell` attempt learning talent spell %u, skipped",spell_id,node.spell);
continue;
}