Scripts/MG: delay the patroulling event a bit to make sure that the Shattered Sun Sentry will correctly call all his movement hooks

This commit is contained in:
Ovahlord committed 2019-05-05 16:38:33 +02:00
1 parent be297daf8f
commit 9d977ce558
1 file changed
+6 -2
@@ -186,10 +186,14 @@ struct npc_mgt_shattered_sun_sentry : public ScriptedAI
{
npc_mgt_shattered_sun_sentry(Creature* creature) : ScriptedAI(creature) { }
void Reset() override
void JustAppeared() override
{
me->SetWalk(true);
me->GetMotionMaster()->MovePoint(POINT_ID_PREPARE_SPLINE_PATH, ShatteredSunSentryWaypoint1);
Unit* unit = me;
me->m_Events.AddEventAtOffset([unit]()
{
unit->GetMotionMaster()->MovePoint(POINT_ID_PREPARE_SPLINE_PATH, ShatteredSunSentryWaypoint1);
}, 2s);
}
void MovementInform(uint32 type, uint32 pointId) override