Changeset 231 for trunk/src/game/Spell.cpp
- Timestamp:
- 11/19/08 13:48:54 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Spell.cpp
r229 r231 2143 2143 m_selfContainer = &(m_caster->m_currentSpells[GetCurrentContainer()]); 2144 2144 SendSpellStart(); 2145 m_caster->addUnitState(UNIT_STAT_CASTING); 2145 2146 } 2146 2147 } … … 2667 2668 return; 2668 2669 2670 if(m_spellState == SPELL_STATE_FINISHED) 2671 return; 2672 2673 m_spellState = SPELL_STATE_FINISHED; 2674 2669 2675 if(IsChanneledSpell(m_spellInfo)) 2670 2676 m_caster->UpdateInterruptMask(); 2671 2677 2672 if(m_spellState == SPELL_STATE_FINISHED) 2673 return; 2674 2675 m_spellState = SPELL_STATE_FINISHED; 2678 if(!m_caster->IsNonMeleeSpellCasted(false, false, true)) 2679 m_caster->clearUnitState(UNIT_STAT_CASTING); 2676 2680 2677 2681 //remove spell mods … … 2708 2712 } 2709 2713 2710 if (IsMeleeAttackResetSpell())2714 /*if (IsMeleeAttackResetSpell()) 2711 2715 { 2712 2716 m_caster->resetAttackTimer(BASE_ATTACK); 2713 2717 if(m_caster->haveOffhandWeapon()) 2714 2718 m_caster->resetAttackTimer(OFF_ATTACK); 2715 } 2719 }*/ 2716 2720 2717 2721 /*if (IsRangedAttackResetSpell())