[8101] Prevent use talents as quest rewards or spell_learn_spell learned spells. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
1 parent
e1d93bd00f
commit
de4faabbcb
2 files changed
+25
-5
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user