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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user