[7881] More types with random generated item at recipe casting. Cleanups code. Author: VladimirMangos
Real resulting items creating required DB support (helper error message outputed at loading) --HG-- branch : trunk
This commit is contained in:
+4
-2
@@ -238,8 +238,10 @@ inline bool IsExplicitDiscoverySpell(SpellEntry const *spellInfo)
|
||||
|
||||
inline bool IsLootCraftingSpell(SpellEntry const *spellInfo)
|
||||
{
|
||||
return spellInfo->Effect[0]==SPELL_EFFECT_CREATE_ITEM_2 &&
|
||||
(spellInfo->Effect[1]==SPELL_EFFECT_SCRIPT_EFFECT || !spellInfo->EffectItemType[0]);
|
||||
return spellInfo->Effect[0]==SPELL_EFFECT_CREATE_ITEM_2 && (
|
||||
spellInfo->Effect[1]==SPELL_EFFECT_SCRIPT_EFFECT || // see IsExplicitDiscoverySpell
|
||||
!spellInfo->EffectItemType[0] || // result item not provided
|
||||
spellInfo->TotemCategory[0] == 121); // different random cards from Inscription (121==Virtuoso Inking Set category)
|
||||
}
|
||||
|
||||
bool IsHigherHankOfSpell(uint32 spellId_1,uint32 spellId_2);
|
||||
|
||||
Reference in New Issue
Block a user