Scripts/PoS: a7a96d4 followup

cause edge cases may exist
ty Aokromes
This commit is contained in:
ccrs
2019-10-27 02:28:28 +01:00
parent 06c6b30ed4
commit a58ed271c9

View File

@@ -202,15 +202,14 @@ struct boss_ick : public BossAI
case ACTION_RESET_THREAT:
me->GetThreatManager().ClearFixate();
if (Unit* current = me->GetVictim())
ResetThreat(current);
if (Unit* oldTarget = ObjectAccessor::GetUnit(*me, _oldTargetGUID))
{
AddThreat(oldTarget, _oldTargetThreat);
_oldTargetGUID.Clear();
_oldTargetThreat = 0.0f;
}
if (Unit* current = me->GetVictim())
ResetThreat(current);
break;
default:
break;