Changeset 131 for trunk/src/game/SpellMgr.h
- Timestamp:
- 11/19/08 13:38:58 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/SpellMgr.h
r122 r131 649 649 typedef std::map<uint32, SpellExtraAttribute> SpellExtraAttrMap; 650 650 651 typedef std::map<int32, int32> SpellLinkedMap; 651 struct SpellLinkedSpell 652 { 653 int32 spell; 654 uint32 type; 655 }; 656 typedef std::map<int32, SpellLinkedSpell> SpellLinkedMap; 652 657 653 658 class SpellMgr … … 858 863 } 859 864 860 int32 GetSpellLinked(int32 spell_id ) const865 int32 GetSpellLinked(int32 spell_id, uint32 type) const 861 866 { 862 867 SpellLinkedMap::const_iterator itr = mSpellLinkedMap.find(spell_id); 863 868 if(itr != mSpellLinkedMap.end()) 864 return itr->second ;869 return itr->second.type == type ? itr->second.spell : 0; 865 870 else 866 871 return 0;