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;
|
||||
|
||||
if(!ids_set.count(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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4843,7 +4843,7 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
|||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7133"
|
||||
#define REVISION_NR "7134"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue