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:
@@ -2892,6 +2892,10 @@ namespace Game.Entities
|
|||||||
if (_focusSpell != null)
|
if (_focusSpell != null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Prevent dead creatures from setting a focus target, so they won't turn
|
||||||
|
if (!IsAlive())
|
||||||
|
return;
|
||||||
|
|
||||||
// some spells shouldn't track targets
|
// some spells shouldn't track targets
|
||||||
if (focusSpell.IsFocusDisabled())
|
if (focusSpell.IsFocusDisabled())
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user