aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuras.h
diff options
context:
space:
mode:
authorQAston <none@none>2010-01-22 18:06:01 +0100
committerQAston <none@none>2010-01-22 18:06:01 +0100
commitc1aa60aaab82733ebb91ce31281f85edf8e7618d (patch)
tree44de82d7e0df6d141c0e38175ad91eedd46e1575 /src/game/SpellAuras.h
parent7bfea3fea3397f936046c1856840a3a9def8ee6a (diff)
*Run grid searches for area auras every 500ms instead of every unit update
*Fix a stupid typo which caused memory leak in Unit::RemoveOwnedAura --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellAuras.h')
-rw-r--r--src/game/SpellAuras.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/SpellAuras.h b/src/game/SpellAuras.h
index 8d0a11c4877..dfa5fca6432 100644
--- a/src/game/SpellAuras.h
+++ b/src/game/SpellAuras.h
@@ -33,6 +33,9 @@ class AuraEffect;
class Aura;
class DynamicObject;
+// update aura target map every 500 ms instead of every update - reduce amount of grid searcher calls
+#define UPDATE_TARGET_MAP_INTERVAL 500
+
class AuraApplication
{
friend AuraApplication * Unit::__ApplyAura(Aura * aura);
@@ -172,6 +175,7 @@ class TRINITY_DLL_SPEC Aura
int32 m_maxDuration; // Max aura duration
int32 m_duration; // Current time
int32 m_timeCla; // Timer for power per sec calcultion
+ int32 m_updateTargetMapInterval; // Timer for UpdateTargetMapOfEffect
uint8 const m_casterLevel; // Aura level (store caster level for correct show level dep amount)
uint8 m_procCharges; // Aura charges (0 for infinite)