[8234] Implement support for explcit discovery spell 64323. Also better checks at loading. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-07-30 10:55:13 +08:00
parent 3926cb174b
commit 65f01ac67c
3 changed files with 22 additions and 2 deletions
+3 -1
View File
@@ -224,7 +224,9 @@ inline bool IsElementalShield(SpellEntry const *spellInfo)
inline bool IsExplicitDiscoverySpell(SpellEntry const *spellInfo)
{
return spellInfo->Effect[0]==SPELL_EFFECT_CREATE_RANDOM_ITEM && spellInfo->Effect[1]==SPELL_EFFECT_SCRIPT_EFFECT;
return spellInfo->Effect[0] == SPELL_EFFECT_CREATE_RANDOM_ITEM
&& spellInfo->Effect[1] == SPELL_EFFECT_SCRIPT_EFFECT
|| spellInfo->Id == 64323; // Book of Glyph Mastery (Effect0==SPELL_EFFECT_SCRIPT_EFFECT without any other data)
}
inline bool IsLootCraftingSpell(SpellEntry const *spellInfo)