fix(Scripts/Northrend): Add periodic CallForHelp to Sartharion (#25480)
This commit is contained in:
@@ -310,6 +310,7 @@ struct boss_sartharion : public BossAI
|
|||||||
usedBerserk(false),
|
usedBerserk(false),
|
||||||
below11PctReached(false)
|
below11PctReached(false)
|
||||||
{
|
{
|
||||||
|
callForHelpRange = 500.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Reset() override
|
void Reset() override
|
||||||
@@ -404,8 +405,6 @@ struct boss_sartharion : public BossAI
|
|||||||
DoCastSelf(SPELL_WILL_OF_SARTHARION, true);
|
DoCastSelf(SPELL_WILL_OF_SARTHARION, true);
|
||||||
instance->DoAction(ACTION_START_PATROL);
|
instance->DoAction(ACTION_START_PATROL);
|
||||||
}
|
}
|
||||||
|
|
||||||
me->CallForHelp(500.0f);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void JustDied(Unit* /*killer*/) override
|
void JustDied(Unit* /*killer*/) override
|
||||||
@@ -569,6 +568,8 @@ struct boss_sartharion : public BossAI
|
|||||||
// Handle Sartharion combat abilities
|
// Handle Sartharion combat abilities
|
||||||
events.Update(diff);
|
events.Update(diff);
|
||||||
|
|
||||||
|
scheduler.Update(diff);
|
||||||
|
|
||||||
if (me->HasUnitState(UNIT_STATE_CASTING))
|
if (me->HasUnitState(UNIT_STATE_CASTING))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user