Core/Unit: fixed Global cooldown cancelation on spell interrupt

Thanks to Nyeriah for the heads up
This commit is contained in:
ariel-
2018-01-22 03:55:04 -03:00
parent 73cc613dc8
commit 514c847881

View File

@@ -3252,12 +3252,13 @@ void Unit::InterruptSpell(CurrentSpellTypes spellType, bool withDelayed, bool wi
if (GetTypeId() == TYPEID_PLAYER)
ToPlayer()->SendAutoRepeatCancel(this);
m_currentSpells[spellType] = nullptr;
if (spell->getState() != SPELL_STATE_FINISHED)
spell->cancel();
else
{
m_currentSpells[spellType] = nullptr;
spell->SetReferencedFromCurrent(false);
}
}
}