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

This commit is contained in:
Wyrserth
2019-06-15 15:03:09 +02:00
committed by Ovahlord
parent 2190cf9524
commit 5bcfe49c7b

View File

@@ -2946,6 +2946,10 @@ void Creature::FocusTarget(Spell const* focusSpell, WorldObject const* target)
if (m_focusSpell)
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;