mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Scripts/Pit of Saron: Fixed Ick not updading victim
Closes #22001
(cherry picked from commit 6cf8bd5ae7)
This commit is contained in:
@@ -221,15 +221,9 @@ class boss_ick : public CreatureScript
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
if (!me->IsEngaged())
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (!me->GetVictim() && me->GetThreatManager().IsThreatListEmpty())
|
||||
{
|
||||
EnterEvadeMode(EVADE_REASON_NO_HOSTILES);
|
||||
return;
|
||||
}
|
||||
|
||||
events.Update(diff);
|
||||
|
||||
if (me->HasUnitState(UNIT_STATE_CASTING))
|
||||
|
||||
Reference in New Issue
Block a user