diff options
author | megamage <none@none> | 2009-08-27 16:41:10 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-27 16:41:10 -0500 |
commit | ee3c766bc95f05018e7de30d9a0768fd1246be87 (patch) | |
tree | 8f44200c1871fb0c9ab5b0a87e89295b33bee3e5 /src/game/Spell.cpp | |
parent | d8290149206a5f8a0a7d5d742fa6f2da280ff695 (diff) |
*Use one dynobj to handle multiple aura effects.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 863530d953a..80636557f79 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -450,6 +450,7 @@ Spell::Spell( Unit* Caster, SpellEntry const *info, bool triggered, uint64 origi m_preCastSpell = 0; m_triggeredByAuraSpell = NULL; m_spellAura = NULL; + m_spellDynObj = NULL; //Auto Shot & Shoot (wand) m_autoRepeat = IsAutoRepeatRangedSpell(m_spellInfo); @@ -6048,13 +6049,9 @@ void Spell::DelayedChannel() } } - for(int j = 0; j < 3; ++j) - { - // partially interrupt persistent area auras - DynamicObject* dynObj = m_caster->GetDynObject(m_spellInfo->Id, j); - if(dynObj) - dynObj->Delay(delaytime); - } + // partially interrupt persistent area auras + if(DynamicObject* dynObj = m_caster->GetDynObject(m_spellInfo->Id)) + dynObj->Delay(delaytime); SendChannelUpdate(m_timer); } |