diff options
Diffstat (limited to 'src/server/game/Combat/ThreatManager.h')
| -rw-r--r-- | src/server/game/Combat/ThreatManager.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/Combat/ThreatManager.h b/src/server/game/Combat/ThreatManager.h index 8ea28a65c11..fa6b596d88b 100644 --- a/src/server/game/Combat/ThreatManager.h +++ b/src/server/game/Combat/ThreatManager.h @@ -22,6 +22,7 @@ #include "IteratorPair.h" #include "ObjectGuid.h" #include "SharedDefines.h" +#include <array> #include <boost/heap/fibonacci_heap.hpp> #include <unordered_map> #include <vector> @@ -204,7 +205,7 @@ class TC_GAME_API ThreatManager void PutThreatenedByMeRef(ObjectGuid const& guid, ThreatReference* ref); void PurgeThreatenedByMeRef(ObjectGuid const& guid); std::unordered_map<ObjectGuid, ThreatReference*> _threatenedByMe; // these refs are entries for myself on other units' threat lists - float _singleSchoolModifiers[MAX_SPELL_SCHOOL]; // most spells are single school - we pre-calculate these and store them + std::array<float, MAX_SPELL_SCHOOL> _singleSchoolModifiers; // most spells are single school - we pre-calculate these and store them mutable std::unordered_map<std::underlying_type<SpellSchoolMask>::type, float> _multiSchoolModifiers; // these are calculated on demand // redirect system (is kind of dumb, but that's because none of the redirection spells actually have any aura effect associated with them, so spellscript needs to deal with it) @@ -218,6 +219,7 @@ class TC_GAME_API ThreatManager friend class ThreatReference; friend struct CompareThreatLessThan; + friend class debug_commandscript; }; // Please check Game/Combat/ThreatManager.h for documentation on how this class works! |
