[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:
megamage
2009-05-24 11:17:41 -05:00
parent 2fadf3dd77
commit 1a637493b7
2 changed files with 26 additions and 31 deletions
+4 -2
View File
@@ -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);