From 112803c149fa6cb2aec0ceceda5fd182be97af00 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 17 Dec 2021 19:17:29 -0500 Subject: [PATCH] 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) --- Source/Game/Entities/Creature/Creature.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Game/Entities/Creature/Creature.cs b/Source/Game/Entities/Creature/Creature.cs index adb232b8f..2693fdb60 100644 --- a/Source/Game/Entities/Creature/Creature.cs +++ b/Source/Game/Entities/Creature/Creature.cs @@ -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;