mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
fix(Core/Spells): Partially revert spell cancel behavior change. (#19101)
Init.
This commit is contained in:
@@ -3710,6 +3710,7 @@ void Spell::cancel(bool bySelf)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
uint32 oldState = m_spellState;
|
uint32 oldState = m_spellState;
|
||||||
|
bool autoRepeat = m_autoRepeat;
|
||||||
m_spellState = SPELL_STATE_FINISHED;
|
m_spellState = SPELL_STATE_FINISHED;
|
||||||
|
|
||||||
m_autoRepeat = false;
|
m_autoRepeat = false;
|
||||||
@@ -3724,9 +3725,11 @@ void Spell::cancel(bool bySelf)
|
|||||||
}
|
}
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
case SPELL_STATE_DELAYED:
|
case SPELL_STATE_DELAYED:
|
||||||
SendInterrupted(SPELL_FAILED_INTERRUPTED);
|
SendInterrupted(0);
|
||||||
|
// xinef: fixes bugged gcd reset in some cases
|
||||||
|
if (!autoRepeat)
|
||||||
|
SendCastResult(SPELL_FAILED_INTERRUPTED);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SPELL_STATE_CASTING:
|
case SPELL_STATE_CASTING:
|
||||||
if (!bySelf)
|
if (!bySelf)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user