fix(Scripts/TempleOfAhnQiraj): let small Eye Tentacles attack the raid (#16784)

* initial

* whitespace

* hrm

* easier
This commit is contained in:
Dan
2023-07-17 21:19:40 +02:00
committed by GitHub
parent 94490f2cdf
commit e5f0f97858
@@ -620,6 +620,7 @@ struct npc_eye_tentacle : public ScriptedAI
void Reset() override void Reset() override
{ {
DoZoneInCombat();
_scheduler.Schedule(500ms, [this](TaskContext /*task*/) _scheduler.Schedule(500ms, [this](TaskContext /*task*/)
{ {
DoCastAOE(SPELL_GROUND_RUPTURE); DoCastAOE(SPELL_GROUND_RUPTURE);
@@ -627,8 +628,12 @@ struct npc_eye_tentacle : public ScriptedAI
.Schedule(5min, [this](TaskContext /*task*/) .Schedule(5min, [this](TaskContext /*task*/)
{ {
me->DespawnOrUnsummon(); me->DespawnOrUnsummon();
}) });
.Schedule(1s, 5s, [this](TaskContext context) }
void JustEngagedWith(Unit* /*who*/) override
{
_scheduler.Schedule(1s, 5s, [this](TaskContext context)
{ {
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, NotInStomachSelector())) if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, NotInStomachSelector()))
{ {
@@ -639,11 +644,6 @@ struct npc_eye_tentacle : public ScriptedAI
}); });
} }
void JustEngagedWith(Unit* /*who*/) override
{
DoZoneInCombat();
}
void UpdateAI(uint32 diff) override void UpdateAI(uint32 diff) override
{ {
//Check if we have a target //Check if we have a target