diff options
| author | Spp- <u84280@epreinf21.(none)> | 2011-07-06 13:28:59 +0200 |
|---|---|---|
| committer | Spp- <u84280@epreinf21.(none)> | 2011-07-06 13:28:59 +0200 |
| commit | f0c28cb3984594fb2294961bbc182fb260205956 (patch) | |
| tree | 5d1be90ef0ccda5d09a7747c21f75ce13a7c2c6a /src | |
| parent | e3729950b9300b7050c0728e3b35e4472e5c9032 (diff) | |
Cosmetic: Define PetAuraMap
Diffstat (limited to 'src')
| -rwxr-xr-x | src/server/game/Spells/SpellMgr.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/server/game/Spells/SpellMgr.h b/src/server/game/Spells/SpellMgr.h index f3de0f34747..56ae5259dbf 100755 --- a/src/server/game/Spells/SpellMgr.h +++ b/src/server/game/Spells/SpellMgr.h @@ -859,6 +859,9 @@ typedef UNORDERED_MAP<uint32, SpellTargetPosition> SpellTargetPositionMap; // Spell pet auras class PetAura { + private: + typedef UNORDERED_MAP<uint32, uint32> PetAuraMap; + public: PetAura() { @@ -873,10 +876,10 @@ class PetAura uint32 GetAura(uint32 petEntry) const { - std::map<uint32, uint32>::const_iterator itr = auras.find(petEntry); + PetAuraMap::const_iterator itr = auras.find(petEntry); if (itr != auras.end()) return itr->second; - std::map<uint32, uint32>::const_iterator itr2 = auras.find(0); + PetAuraMap::const_iterator itr2 = auras.find(0); if (itr2 != auras.end()) return itr2->second; return 0; @@ -898,7 +901,7 @@ class PetAura } private: - std::map<uint32, uint32> auras; + PetAuraMap auras; bool removeOnChangePet; int32 damage; }; @@ -909,8 +912,8 @@ struct SpellArea uint32 spellId; uint32 areaId; // zone/subzone/or 0 is not limited to zone uint32 questStart; // quest start (quest must be active or rewarded for spell apply) - uint32 questEnd; // quest end (quest don't must be rewarded for spell apply) - int32 auraSpell; // spell aura must be applied for spell apply)if possitive) and it don't must be applied in other case + uint32 questEnd; // quest end (quest must not be rewarded for spell apply) + int32 auraSpell; // spell aura must be applied for spell apply)if possitive) and it must not be applied in other case uint32 raceMask; // can be applied only to races Gender gender; // can be applied only to gender bool questStartCanActive; // if true then quest start can be active (not only rewarded) |
