Core/Creature: Fix an issue that sometimes prevented spellcast focus targets from being reacquired.

(cherry picked from commit fcce90508d)
This commit is contained in:
Treeston
2019-08-11 13:31:46 +02:00
committed by Shauren
parent c5244d4e66
commit 4b588694ca

View File

@@ -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))
{