From 1c1517030bc3e36f39c8af04a2528d57c3e6f307 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 8 Nov 2008 09:11:18 -0600 Subject: [svn] Do not break stealth when spell is not successfully casted (e.g. out of range). --HG-- branch : trunk --- src/game/Spell.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src') 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()) -- cgit v1.2.3