Changeset 196 for trunk/src/game/SpellMgr.h
- Timestamp:
- 11/19/08 13:45:21 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/SpellMgr.h
r157 r196 635 635 } 636 636 637 enum SpellExtraAttributeType 638 { 639 SPELL_EXTRA_ATTR_MAX_TARGETS, 640 SPELL_EXTRA_ATTR_CONE_TYPE, 641 SPELL_EXTRA_ATTR_SHARE_DAMAGE 642 }; 643 644 struct SpellExtraAttribute 645 { 646 uint32 attr[3]; 647 }; 648 649 typedef std::map<uint32, SpellExtraAttribute> SpellExtraAttrMap; 637 #define SPELL_ATTR_CU_PLAYERS_ONLY 0x00000001 638 #define SPELL_ATTR_CU_CONE_BACK 0x00000002 639 #define SPELL_ATTR_CU_CONE_LINE 0x00000004 640 #define SPELL_ATTR_CU_SHARE_DAMAGE 0x00000008 641 #define SPELL_ATTR_CU_EFFECT_HEAL 0x00000010 642 #define SPELL_ATTR_CU_EFFECT_DAMAGE 0x00000020 643 644 typedef std::map<uint32, uint32> SpellCustomAttrMap; 650 645 651 646 typedef std::map<int32, std::vector<int32> > SpellLinkedMap; … … 849 844 } 850 845 851 uint32 GetSpell ExtraAttr(uint32 spell_id, uint32 type) const852 { 853 Spell ExtraAttrMap::const_iterator itr = mSpellExtraAttrMap.find(spell_id);854 if(itr != mSpell ExtraAttrMap.end())855 return itr->second .attr[type];846 uint32 GetSpellCustomAttr(uint32 spell_id) const 847 { 848 SpellCustomAttrMap::const_iterator itr = mSpellCustomAttrMap.find(spell_id); 849 if(itr != mSpellCustomAttrMap.end()) 850 return itr->second; 856 851 else 857 852 return 0; … … 880 875 void LoadSkillLineAbilityMap(); 881 876 void LoadSpellPetAuras(); 882 void LoadSpell ExtraAttr();877 void LoadSpellCustomAttr(); 883 878 void LoadSpellLinked(); 884 879 … … 895 890 SkillLineAbilityMap mSkillLineAbilityMap; 896 891 SpellPetAuraMap mSpellPetAuraMap; 897 Spell ExtraAttrMap mSpellExtraAttrMap;892 SpellCustomAttrMap mSpellCustomAttrMap; 898 893 SpellLinkedMap mSpellLinkedMap; 899 894 };