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

This commit is contained in:
VladimirMangos 2009-07-01 06:40:43 +04:00
parent 2b71634187
commit dc10620148
3 changed files with 26 additions and 6 deletions

View file

@ -1859,7 +1859,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;
}