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);
|
instance->SetBossState(DATA_NETHEKURSE, NOT_STARTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void JustReachedHome() override
|
||||||
|
{
|
||||||
|
me->GetMotionMaster()->Initialize();
|
||||||
|
}
|
||||||
|
|
||||||
void JustDied(Unit* /*killer*/) override
|
void JustDied(Unit* /*killer*/) override
|
||||||
{
|
{
|
||||||
Talk(SAY_DIE);
|
Talk(SAY_DIE);
|
||||||
@@ -137,9 +142,13 @@ struct boss_grand_warlock_nethekurse : public BossAI
|
|||||||
scheduler.Schedule(500ms, GROUP_RP, [this](TaskContext /*context*/)
|
scheduler.Schedule(500ms, GROUP_RP, [this](TaskContext /*context*/)
|
||||||
{
|
{
|
||||||
me->HandleEmoteCommand(EMOTE_ONESHOT_APPLAUD);
|
me->HandleEmoteCommand(EMOTE_ONESHOT_APPLAUD);
|
||||||
me->GetMotionMaster()->Initialize();
|
|
||||||
Talk(SAY_PEON_DIES);
|
Talk(SAY_PEON_DIES);
|
||||||
|
|
||||||
|
scheduler.Schedule(1s, GROUP_RP, [this](TaskContext /*context*/)
|
||||||
|
{
|
||||||
|
me->GetMotionMaster()->Initialize();
|
||||||
|
});
|
||||||
|
|
||||||
if (++PeonKilledCount == 4)
|
if (++PeonKilledCount == 4)
|
||||||
{
|
{
|
||||||
Talk(SAY_INTRO_2);
|
Talk(SAY_INTRO_2);
|
||||||
@@ -161,16 +170,14 @@ struct boss_grand_warlock_nethekurse : public BossAI
|
|||||||
me->GetMotionMaster()->MoveIdle();
|
me->GetMotionMaster()->MoveIdle();
|
||||||
me->SetFacingTo(4.572762489318847656f);
|
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);
|
||||||
PeonRoleplay roleplayData = Acore::Containers::SelectRandomContainerElement(PeonRoleplayData);
|
Talk(roleplayData.textId);
|
||||||
DoCast(me, roleplayData.spellId);
|
me->GetMotionMaster()->Initialize();
|
||||||
Talk(roleplayData.textId);
|
|
||||||
me->GetMotionMaster()->Initialize();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
context.Repeat(16400ms, 28500ms);
|
context.Repeat(16400ms, 28500ms);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user