Skip to content

Commit

Permalink
adjust timings
Browse files Browse the repository at this point in the history
  • Loading branch information
sogladev committed Jun 26, 2024
1 parent b442292 commit 4303082
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/scripts/Northrend/Naxxramas/boss_razuvious.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ class boss_razuvious : public CreatureScript
void ScheduleRP()
{
_rpBuddyGUID = Acore::Containers::SelectRandomContainerElement(summons);
scheduler.Schedule(1s, GROUP_OOC_RP, [this](TaskContext context)
scheduler.Schedule(60s, 80s, GROUP_OOC_RP, [this](TaskContext context)
{
if (_rpBuddyGUID)
if (Creature* understudy = ObjectAccessor::GetCreature(*me, _rpBuddyGUID))
{
if (me->GetDistance2d(understudy) <= 6.0f)
{
me->PauseMovement();
scheduler.Schedule(1s, GROUP_OOC_RP, [this](TaskContext /*context*/)
scheduler.Schedule(500ms, GROUP_OOC_RP, [this](TaskContext /*context*/)
{
if (_rpBuddyGUID)
if (Creature* understudy = ObjectAccessor::GetCreature(*me, _rpBuddyGUID))
Expand All @@ -200,7 +200,7 @@ class boss_razuvious : public CreatureScript
return;
}
}
context.Repeat(1s);
context.Repeat(2s);
});
}

Expand Down

0 comments on commit 4303082

Please sign in to comment.