mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-06 12:27:48 +00:00
fix(Scripts/RuinsOfAhnQiraj): Restructure Ayamiss task scheduling during landing (#12870)
* fix(Scripts/RuinsOfAhnQiraj): Restructure Ayamiss * Update boss_ayamiss.cpp
This commit is contained in:
@@ -126,6 +126,15 @@ struct boss_ayamiss : public BossAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
}, 1s);
|
}, 1s);
|
||||||
|
|
||||||
|
_scheduler.Schedule(5s, 8s, [this](TaskContext context) {
|
||||||
|
DoCastVictim(SPELL_LASH);
|
||||||
|
context.Repeat(8s, 15s);
|
||||||
|
}).Schedule(16s, [this](TaskContext context)
|
||||||
|
{
|
||||||
|
DoCastSelf(SPELL_THRASH);
|
||||||
|
context.Repeat();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -210,17 +219,6 @@ struct boss_ayamiss : public BossAI
|
|||||||
me->SetDisableGravity(false);
|
me->SetDisableGravity(false);
|
||||||
me->GetMotionMaster()->MovePath(me->GetEntry() * 10, false);
|
me->GetMotionMaster()->MovePath(me->GetEntry() * 10, false);
|
||||||
DoResetThreat();
|
DoResetThreat();
|
||||||
|
|
||||||
_scheduler.Schedule(5s, 8s, [this](TaskContext context) {
|
|
||||||
DoCastVictim(SPELL_LASH);
|
|
||||||
context.Repeat(8s, 15s);
|
|
||||||
}).Schedule(16s, [this](TaskContext context)
|
|
||||||
{
|
|
||||||
DoCastSelf(SPELL_THRASH);
|
|
||||||
context.Repeat();
|
|
||||||
});
|
|
||||||
|
|
||||||
_scheduler.DelayAll(5s);
|
|
||||||
_scheduler.CancelGroup(PHASE_AIR);
|
_scheduler.CancelGroup(PHASE_AIR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -271,6 +269,7 @@ struct npc_hive_zara_larva : public ScriptedAI
|
|||||||
if (Creature* ayamiss = _instance->GetCreature(DATA_AYAMISS))
|
if (Creature* ayamiss = _instance->GetCreature(DATA_AYAMISS))
|
||||||
{
|
{
|
||||||
ayamiss->AI()->JustSummoned(summon);
|
ayamiss->AI()->JustSummoned(summon);
|
||||||
|
summon->SetInCombatWithZone();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user