Core/Creature: prevent dead creatures from setting a focus target, so they won't turn when hit by certain spells.

Port From (https://github.com/TrinityCore/TrinityCore/commit/264373bb656352a0cdf9b18bad4f3929c7376a9c)
This commit is contained in:
hondacrx
2021-12-17 19:17:29 -05:00
parent b367f70d6c
commit 112803c149
@@ -2892,6 +2892,10 @@ namespace Game.Entities
if (_focusSpell != null)
return;
// Prevent dead creatures from setting a focus target, so they won't turn
if (!IsAlive())
return;
// some spells shouldn't track targets
if (focusSpell.IsFocusDisabled())
return;