aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-11-15 10:21:37 -0600
committermegamage <none@none>2008-11-15 10:21:37 -0600
commit9ff33852b73ce7934c3f88eef21c81c4c2b1f408 (patch)
tree4d353708ec08f69f4b78a868b871120296125882 /src/game/Unit.cpp
parent5eda9b1ec7c16820af3293971e63d67d9323c2f9 (diff)
[svn] Fix the bug that next melee spells and auto shoot do not work.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 2ff5fe47705..8d94a7fea5e 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -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: