mirror of
https://github.com/mangosfour/server.git
synced 2026-01-01 16:37:12 +00:00
[8234] Implement support for explcit discovery spell 64323. Also better checks at loading.
This commit is contained in:
parent
dce0941511
commit
ae2f25ce64
4 changed files with 23 additions and 3 deletions
|
|
@ -155,7 +155,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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue