mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 13:37:01 +00:00
[8070] Restore spell casting loot items and recipes.
* SPELL_EFFECT_OPEN_LOCK_ITEM (59) effect removed in 3.1.3 * It replaced by SPELL_EFFECT_CREATE_RANDOM_ITEM (59), random item without template replace spells like clam loot spells) Used by spells that use before SPELL_EFFECT_CREATE_ITEM_2 (157) with itemtype==0 Note: required DB support in `spell_loot_termplate`
This commit is contained in:
parent
e455ee7da7
commit
7175007aba
8 changed files with 33 additions and 30 deletions
|
|
@ -1320,10 +1320,12 @@ void LoadLootTemplates_Spell()
|
|||
|
||||
if(!ids_set.count(spell_id))
|
||||
{
|
||||
// not report about not trainable spells (optionally supported by DB) except with SPELL_ATTR_EX2_UNK14 (clams)
|
||||
// 61756 (Northrend Inscription Research (FAST QA VERSION) for example
|
||||
if ((spellInfo->Attributes & SPELL_ATTR_UNK5) || (spellInfo->AttributesEx2 & SPELL_ATTR_EX2_UNK14))
|
||||
// not report about not trainable spells (optionally supported by DB)
|
||||
// ignore 61756 (Northrend Inscription Research (FAST QA VERSION) for example
|
||||
if (!(spellInfo->Attributes & SPELL_ATTR_NOT_SHAPESHIFT) || (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