mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/Creature: Fix an issue that sometimes prevented spellcast focus targets from being reacquired.
(cherry picked from commit fcce90508d)
This commit is contained in:
@@ -3300,10 +3300,9 @@ void Creature::ReleaseSpellFocus(Spell const* focusSpell, bool withDelay)
|
||||
|
||||
void Creature::ReacquireSpellFocusTarget()
|
||||
{
|
||||
if (!HasSpellFocus())
|
||||
return;
|
||||
ASSERT(HasSpellFocus());
|
||||
|
||||
SetTarget(_spellFocusInfo.Target);
|
||||
SetUpdateFieldValue(m_values.ModifyValue(&Unit::m_unitData).ModifyValue(&UF::UnitData::Target), _spellFocusInfo.Target);
|
||||
|
||||
if (!HasUnitFlag2(UNIT_FLAG2_DISABLE_TURN))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user