Core/Spells: prevent creatures to focus channeled spells without SPELL_ATTR1_CHANNEL_TRACK_TARGET

Port From (https://github.com/TrinityCore/TrinityCore/commit/d91e099b10a33d9205c023c81bcc966d713c39ab)
This commit is contained in:
hondacrx
2021-06-23 23:43:18 -04:00
parent 61e9d9f964
commit eefb63647d
3 changed files with 7 additions and 1 deletions
@@ -2882,6 +2882,10 @@ namespace Game.Entities
if (_focusSpell != null)
return;
// some spells shouldn't track targets
if (focusSpell.IsFocusDisabled())
return;
SpellInfo spellInfo = focusSpell.GetSpellInfo();
// don't use spell focus for vehicle spells