aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuras.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2010-01-24 18:58:06 +0100
committerQAston <none@none>2010-01-24 18:58:06 +0100
commit3d7b021b23ed2c12f3c2f87544bba3e310aea1e0 (patch)
tree7a20a4306f27cf2cb43c7b2c1070913157a6ed05 /src/game/SpellAuras.cpp
parent492fe452fd816ed78cea2f7f340ed325a66425de (diff)
Remove SpellChannelInterruptFlags definitions which were duplicate of SpellAuraInterruptFlags, move IsRemoved check to Aura::UpdateTargetMap
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r--src/game/SpellAuras.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index b6c7b30de23..9ced669238d 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -456,6 +456,9 @@ void Aura::_Remove(AuraRemoveMode removeMode)
void Aura::UpdateTargetMap(Unit * caster, bool apply)
{
+ if (IsRemoved())
+ return;
+
m_updateTargetMapInterval = UPDATE_TARGET_MAP_INTERVAL;
// fill up to date target list
@@ -593,13 +596,10 @@ void Aura::UpdateOwner(uint32 diff, WorldObject * owner)
Update(diff, caster);
- if (!IsRemoved())
- {
- if (m_updateTargetMapInterval <= diff)
- UpdateTargetMap(caster);
- else
- m_updateTargetMapInterval -= diff;
- }
+ if (m_updateTargetMapInterval <= diff)
+ UpdateTargetMap(caster);
+ else
+ m_updateTargetMapInterval -= diff;
// update aura effects
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)