Scripts/Utgarde Keep: Fix Ingvar Evading (again)

UNIT_FLAG_NON_ATTACKABLE makes ingvar become a invalid target and lose threatlist, so me->IsThreatened() will return false.
We dont need it at all, since UpdateAI will handle evade already.

(cherry picked from commit 71dde16ce9)
This commit is contained in:
Keader
2019-01-28 17:42:00 -03:00
committed by Shauren
parent 5c48cac6f9
commit 4a943fd3d2

View File

@@ -231,11 +231,6 @@ class boss_ingvar_the_plunderer : public CreatureScript
me->RemoveUnitFlag(UnitFlags(UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE));
me->SetImmuneToPC(false);
ScheduleSecondPhase();
if (!me->IsThreatened())
{
EnterEvadeMode(EVADE_REASON_NO_HOSTILES);
return;
}
Talk(SAY_AGGRO);
DoZoneInCombat();
return;