mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 19:37:01 +00:00
[7134] Make reqirement for DB data for non-player explicit discovery spell optional.
This commit is contained in:
parent
2b91a790bc
commit
7766d016ca
3 changed files with 9 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue