[7467] Use SpellCastResult and replace CanCast by CheckCast.

Note: proper way to check: if(spell->CheckCast(...)==SPELL_CAST_OK)
This commit is contained in:
VladimirMangos 2009-03-16 13:12:51 +03:00
parent c1b0e7d57a
commit 0e987bf59e
6 changed files with 75 additions and 76 deletions

View file

@ -2968,7 +2968,7 @@ void Unit::_UpdateAutoRepeatSpell()
if (isAttackReady(RANGED_ATTACK))
{
// Check if able to cast
if(m_currentSpells[CURRENT_AUTOREPEAT_SPELL]->CanCast(true))
if(m_currentSpells[CURRENT_AUTOREPEAT_SPELL]->CheckCast(true) != SPELL_CAST_OK)
{
InterruptSpell(CURRENT_AUTOREPEAT_SPELL);
return;