void OnReachWP(uint32 iWaypointId, bool bForwards) { ForceWaypointMove(iWaypointId+1); if(GetPhase() == 1 && GetCurrentWaypoint() == 39) { _unit->Emote(EMOTE_ONESHOT_TALK); SetPhase(2, Awakening); SpawnTimer = AddTimer(100000); } ParentClass::OnReachWP(iWaypointId, bForwards); }
void OnReachWP(uint32 iWaypointId, bool /*bForwards*/) override { ForceWaypointMove(iWaypointId + 1); if (isScriptPhase(1) && GetCurrentWaypoint() == 39) setScriptPhase(2); }
bool IsOver() const { return GetCurrentWaypoint() >= x4_waypoints.size() - 1; }