[svn] Fix the bug that next melee spells and auto shoot do not work.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2008-11-15 10:21:37 -06:00
1 parent 5eda9b1ec7
commit 9ff33852b7
5 files changed
+14 -12

No files matched your search

+2
View File
@@ -3304,6 +3304,7 @@ void Unit::SetCurrentCastedSpell( Spell * pSpell )
InterruptSpell(CURRENT_AUTOREPEAT_SPELL);
m_AutoRepeatFirstCast = true;
}
addUnitState(UNIT_STAT_CASTING);
} break;
case CURRENT_CHANNELED_SPELL:
@@ -3316,6 +3317,7 @@ void Unit::SetCurrentCastedSpell( Spell * pSpell )
if ( m_currentSpells[CURRENT_AUTOREPEAT_SPELL] &&
m_currentSpells[CURRENT_AUTOREPEAT_SPELL]->m_spellInfo->Category == 351 )
InterruptSpell(CURRENT_AUTOREPEAT_SPELL);
addUnitState(UNIT_STAT_CASTING);
} break;
case CURRENT_AUTOREPEAT_SPELL: