Core/Spells: fix Global Cooldown reset on spell cast interrupt.
This commit is contained in:
@@ -2981,17 +2981,15 @@ void Unit::InterruptSpell(CurrentSpellTypes spellType, bool withDelayed, bool wi
|
||||
if (!spell->IsInterruptable())
|
||||
return;
|
||||
|
||||
m_currentSpells[spellType] = NULL;
|
||||
|
||||
// send autorepeat cancel message for autorepeat spells
|
||||
if (spellType == CURRENT_AUTOREPEAT_SPELL)
|
||||
{
|
||||
if (GetTypeId() == TYPEID_PLAYER)
|
||||
this->ToPlayer()->SendAutoRepeatCancel(this);
|
||||
}
|
||||
ToPlayer()->SendAutoRepeatCancel(this);
|
||||
|
||||
if (spell->getState() != SPELL_STATE_FINISHED)
|
||||
spell->cancel();
|
||||
|
||||
m_currentSpells[spellType] = NULL;
|
||||
spell->SetReferencedFromCurrent(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user