diff options
Diffstat (limited to 'src/game/SpellMgr.h')
-rw-r--r-- | src/game/SpellMgr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/SpellMgr.h b/src/game/SpellMgr.h index 6bcba4cd95c..c3174a05e7c 100644 --- a/src/game/SpellMgr.h +++ b/src/game/SpellMgr.h @@ -726,6 +726,7 @@ inline bool IsProfessionSkill(uint32 skill) typedef std::vector<uint32> SpellCustomAttribute; +typedef std::vector<bool> EnchantCustomAttribute; typedef std::map<int32, std::vector<int32> > SpellLinkedMap; @@ -886,6 +887,11 @@ class SpellMgr return spell_id; } + uint32 IsArenaAllowedEnchancment(uint32 ench_id) const + { + return mEnchantCustomAttr[ench_id]; + } + uint8 IsHighRankOfSpell(uint32 spell1,uint32 spell2) const { SpellChainMap::const_iterator itr = mSpellChains.find(spell1); @@ -1071,6 +1077,7 @@ class SpellMgr void LoadSkillLineAbilityMap(); void LoadSpellPetAuras(); void LoadSpellCustomAttr(); + void LoadEnchantCustomAttr(); void LoadSpellEnchantProcData(); void LoadSpellLinked(); void LoadPetLevelupSpellMap(); @@ -1094,6 +1101,7 @@ class SpellMgr SpellCustomAttribute mSpellCustomAttr; SpellLinkedMap mSpellLinkedMap; SpellEnchantProcEventMap mSpellEnchantProcEventMap; + EnchantCustomAttribute mEnchantCustomAttr; PetLevelupSpellMap mPetLevelupSpellMap; PetDefaultSpellsMap mPetDefaultSpellsMap; // only spells not listed in related mPetLevelupSpellMap entry SpellAreaMap mSpellAreaMap; |