fix(Scripts/TempleOfAhnQiraj): let small Eye Tentacles attack the raid (#16784)
* initial * whitespace * hrm * easier
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user