mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16: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;
|
continue;
|
||||||
|
|
||||||
if(!ids_set.count(spell_id))
|
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
|
else
|
||||||
ids_set.erase(spell_id);
|
ids_set.erase(spell_id);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4839,11 +4839,11 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
||||||
case 60893: // Northrend Alchemy Research
|
case 60893: // Northrend Alchemy Research
|
||||||
case 61177: // Northrend Inscription Research
|
case 61177: // Northrend Inscription Research
|
||||||
case 61288: // Minor Inscription Research
|
case 61288: // Minor Inscription Research
|
||||||
case 61756: // Northrend Inscription Research (FAST QA VERSION)
|
case 61756: // Northrend Inscription Research (FAST QA VERSION)
|
||||||
{
|
{
|
||||||
if(!IsExplicitDiscoverySpell(m_spellInfo))
|
if(!IsExplicitDiscoverySpell(m_spellInfo))
|
||||||
{
|
{
|
||||||
sLog.outError("Wrong explicit discowry spell %u structure, or outdated...",m_spellInfo->Id);
|
sLog.outError("Wrong explicit discovery spell %u structure, or outdated...",m_spellInfo->Id);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7133"
|
#define REVISION_NR "7134"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue