diff options
author | megamage <none@none> | 2009-02-07 11:52:10 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-07 11:52:10 -0600 |
commit | 4ed12b0e17d83dc5e0ee34d7c1241975f0a7f3c0 (patch) | |
tree | 911befc08443d51174be8b9fdeac8926e9b95fb6 /src | |
parent | fbbecd9c8a821e54c9cded9cf481d71844e78e79 (diff) |
*Fix some bugged spell visual.
--HG--
branch : trunk
Diffstat (limited to 'src')
-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 66e0a2e1e68..abdeeb275b5 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2097,17 +2097,14 @@ void Spell::prepare(SpellCastTargets * targets, Aura* triggeredByAura) if(isSpellBreakStealth(m_spellInfo) ) m_caster->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_CAST); + m_caster->SetCurrentCastedSpell( this ); + m_selfContainer = &(m_caster->m_currentSpells[GetCurrentContainer()]); + SendSpellStart(); + if(!m_casttime && !m_spellInfo->StartRecoveryTime && !m_castItemGUID //item: first cast may destroy item and second cast causes crash && GetCurrentContainer() == CURRENT_GENERIC_SPELL) cast(true); - else - { - m_caster->SetCurrentCastedSpell( this ); - m_selfContainer = &(m_caster->m_currentSpells[GetCurrentContainer()]); - } - - SendSpellStart(); } } |