From c971cae3bb7c9da7784a9204a3a31c5cea07d72e Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 1 Jun 2022 13:53:22 -0400 Subject: [PATCH] Core/Spells: Corrected implementation of SPELL_ATTR5_ALLOW_ACTIONS_DURING_CHANNEL - it allows casting other spells while channeling, not allows movement while channeling Port From (https://github.com/TrinityCore/TrinityCore/commit/8a219b7e397f4c31a0e40d582ff9bbcd94f1a6e1) --- Source/Game/Entities/Unit/Unit.Spells.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Game/Entities/Unit/Unit.Spells.cs b/Source/Game/Entities/Unit/Unit.Spells.cs index 4f7160e40..1be859ef6 100644 --- a/Source/Game/Entities/Unit/Unit.Spells.cs +++ b/Source/Game/Entities/Unit/Unit.Spells.cs @@ -1636,7 +1636,8 @@ namespace Game.Entities case CurrentSpellTypes.Generic: { // generic spells always break channeled not delayed spells - InterruptSpell(CurrentSpellTypes.Channeled, false); + if (GetCurrentSpell(CurrentSpellTypes.Channeled) != null && !GetCurrentSpell(CurrentSpellTypes.Channeled).GetSpellInfo().HasAttribute(SpellAttr5.AllowActionsDuringChannel)) + InterruptSpell(CurrentSpellTypes.Channeled, false); // autorepeat breaking if (GetCurrentSpell(CurrentSpellTypes.AutoRepeat) != null)