Changeset 194

Show
Ignore:
Timestamp:
11/19/08 13:45:14 (17 years ago)
Author:
yumileroy
Message:

[svn] Do not break stealth when spell is not successfully casted (e.g. out of range).

Original author: megamage
Date: 2008-11-08 09:11:18-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Spell.cpp

    r186 r194  
    21442144    ReSetTimer(); 
    21452145 
    2146     // stealth must be removed at cast starting (at show channel bar) 
    2147     // skip triggered spell (item equip spell casting and other not explicit character casts/item uses) 
    2148     if ( !m_IsTriggeredSpell && isSpellBreakStealth(m_spellInfo) ) 
    2149     { 
    2150         m_caster->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_STEALTH); 
    2151     } 
    2152  
    21532146    if(m_IsTriggeredSpell) 
    21542147        cast(true); 
     
    22472240 
    22482241    FillTargetMap(); 
     2242 
     2243    // stealth must be removed at cast starting (at show channel bar) 
     2244    // skip triggered spell (item equip spell casting and other not explicit character casts/item uses) 
     2245    if ( !m_IsTriggeredSpell && isSpellBreakStealth(m_spellInfo) ) 
     2246    { 
     2247        m_caster->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_STEALTH); 
     2248    } 
    22492249 
    22502250    // who did this hack?