Core/Creatures: always remove UNIT_STATE_FOCUSING when releasing spell focus regardless of the spell's attributes to prevent soft-locking a creatures's orientation

This commit is contained in:
Ovahlord
2022-07-02 17:43:56 +02:00
parent 5931ab55f6
commit 9ea4f3914d

View File

@@ -3237,8 +3237,7 @@ void Creature::ReleaseSpellFocus(Spell const* focusSpell, bool withDelay)
if (focusSpell && focusSpell != _spellFocusInfo.FocusSpell)
return;
if (_spellFocusInfo.FocusSpell->GetSpellInfo()->HasAttribute(SPELL_ATTR5_DONT_TURN_DURING_CAST))
ClearUnitState(UNIT_STATE_FOCUSING);
ClearUnitState(UNIT_STATE_FOCUSING);
if (IsPet()) // player pets do not use delay system
{