Core/Spells: Corrected implementation of SPELL_ATTR5_ALLOW_ACTIONS_DURING_CHANNEL - it allows casting other spells while channeling, not allows movement while channeling

This commit is contained in:
Shauren authored and Ovahlord committed 2022-09-30 02:00:04 +02:00
1 parent 75906f3d06
commit 2c78751b5a
2 files changed
+2 -7

No files matched your search

+2 -1
View File
@@ -2723,7 +2723,8 @@ void Unit::SetCurrentCastSpell(Spell* spell)
case CURRENT_GENERIC_SPELL:
{
// generic spells always break channeled not delayed spells
InterruptSpell(CURRENT_CHANNELED_SPELL, false);
if (m_currentSpells[CURRENT_CHANNELED_SPELL] && !m_currentSpells[CURRENT_CHANNELED_SPELL]->GetSpellInfo()->HasAttribute(SPELL_ATTR5_ALLOW_ACTIONS_DURING_CHANNEL))
InterruptSpell(CURRENT_CHANNELED_SPELL, false);
// autorepeat breaking
if (m_currentSpells[CURRENT_AUTOREPEAT_SPELL])