mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
fix(Scripts/ShatteredHalls): Fix Nethekurse delay after peon dies (#16384)
* fix(Scripts/ShatteredHalls): Fix Nethekurse delay after peon dies * Update boss_nethekurse.cpp * typo * Update boss_nethekurse.cpp * Update boss_nethekurse.cpp
This commit is contained in:
@@ -113,6 +113,11 @@ struct boss_grand_warlock_nethekurse : public BossAI
|
||||
instance->SetBossState(DATA_NETHEKURSE, NOT_STARTED);
|
||||
}
|
||||
|
||||
void JustReachedHome() override
|
||||
{
|
||||
me->GetMotionMaster()->Initialize();
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*killer*/) override
|
||||
{
|
||||
Talk(SAY_DIE);
|
||||
@@ -137,9 +142,13 @@ struct boss_grand_warlock_nethekurse : public BossAI
|
||||
scheduler.Schedule(500ms, GROUP_RP, [this](TaskContext /*context*/)
|
||||
{
|
||||
me->HandleEmoteCommand(EMOTE_ONESHOT_APPLAUD);
|
||||
me->GetMotionMaster()->Initialize();
|
||||
Talk(SAY_PEON_DIES);
|
||||
|
||||
scheduler.Schedule(1s, GROUP_RP, [this](TaskContext /*context*/)
|
||||
{
|
||||
me->GetMotionMaster()->Initialize();
|
||||
});
|
||||
|
||||
if (++PeonKilledCount == 4)
|
||||
{
|
||||
Talk(SAY_INTRO_2);
|
||||
@@ -161,16 +170,14 @@ struct boss_grand_warlock_nethekurse : public BossAI
|
||||
me->GetMotionMaster()->MoveIdle();
|
||||
me->SetFacingTo(4.572762489318847656f);
|
||||
|
||||
scheduler.Schedule(500ms, GROUP_RP, [this](TaskContext /*context*/)
|
||||
scheduler.Schedule(2500ms, GROUP_RP, [this](TaskContext /*context*/)
|
||||
{
|
||||
scheduler.Schedule(2500ms, GROUP_RP, [this](TaskContext /*context*/)
|
||||
{
|
||||
PeonRoleplay roleplayData = Acore::Containers::SelectRandomContainerElement(PeonRoleplayData);
|
||||
DoCast(me, roleplayData.spellId);
|
||||
Talk(roleplayData.textId);
|
||||
me->GetMotionMaster()->Initialize();
|
||||
});
|
||||
PeonRoleplay roleplayData = Acore::Containers::SelectRandomContainerElement(PeonRoleplayData);
|
||||
DoCast(me, roleplayData.spellId);
|
||||
Talk(roleplayData.textId);
|
||||
me->GetMotionMaster()->Initialize();
|
||||
});
|
||||
|
||||
context.Repeat(16400ms, 28500ms);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user