[7134] Make reqirement for DB data for non-player explicit discovery spell optional.

This commit is contained in:
VladimirMangos 2009-01-21 15:33:53 +03:00
parent 2b91a790bc
commit 7766d016ca
3 changed files with 9 additions and 4 deletions

View file

@ -1277,7 +1277,12 @@ void LoadLootTemplates_Spell()
continue;
if(!ids_set.count(spell_id))
LootTemplates_Spell.ReportNotExistedId(spell_id);
{
// not report about not trainable spells (optionally supported by DB)
// 61756 (Northrend Inscription Research (FAST QA VERSION) for example
if(spellInfo->Attributes & SPELL_ATTR_UNK5)
LootTemplates_Spell.ReportNotExistedId(spell_id);
}
else
ids_set.erase(spell_id);
}