diff options
author | megamage <none@none> | 2008-11-08 09:11:18 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-11-08 09:11:18 -0600 |
commit | 1c1517030bc3e36f39c8af04a2528d57c3e6f307 (patch) | |
tree | fe97386fc180d2c7dff612a23f680ab75df37128 | |
parent | 7b23225006f8c942f670521f96c02d061600192d (diff) |
[svn] Do not break stealth when spell is not successfully casted (e.g. out of range).
--HG--
branch : trunk
-rw-r--r-- | src/game/Spell.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index d700683c7d1..770d0fd8bff 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2143,13 +2143,6 @@ void Spell::prepare(SpellCastTargets * targets, Aura* triggeredByAura) // set timer base at cast time ReSetTimer(); - // stealth must be removed at cast starting (at show channel bar) - // skip triggered spell (item equip spell casting and other not explicit character casts/item uses) - if ( !m_IsTriggeredSpell && isSpellBreakStealth(m_spellInfo) ) - { - m_caster->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_STEALTH); - } - if(m_IsTriggeredSpell) cast(true); else @@ -2247,6 +2240,13 @@ void Spell::cast(bool skipCheck) FillTargetMap(); + // stealth must be removed at cast starting (at show channel bar) + // skip triggered spell (item equip spell casting and other not explicit character casts/item uses) + if ( !m_IsTriggeredSpell && isSpellBreakStealth(m_spellInfo) ) + { + m_caster->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_STEALTH); + } + // who did this hack? // Conflagrate - consumes immolate if ((m_spellInfo->TargetAuraState == AURA_STATE_IMMOLATE) && m_targets.getUnitTarget()) |