diff --git a/server/gframe/single_duel.cpp b/server/gframe/single_duel.cpp index fc2bbd0..129fff2 100644 --- a/server/gframe/single_duel.cpp +++ b/server/gframe/single_duel.cpp @@ -1107,6 +1107,11 @@ void SingleDuel::StartDuel(DuelPlayer* dp) { if(restart_phase != 0) // YGOL rules restart: frozen until Commit or Abort return; ygol_started = true; // YGOL rules restart: no Prepare after the first accepted START + // YGOL restart clock: the lobby tick shares the duel timer; a reservation window still open at START + // would tick into the duel and end it at once on "time limit up" (an untimed duel has a limit of 0) + if(has_restart_plan) + ExpireReservations(); + NetServer::StopDuelTimer(); for(auto& state : seat_state) state = CTOS_SeatState{}; // YGOL seat state: nobody is picking once the duel starts #ifndef YGOPRO_SERVER_MODE diff --git a/server/gframe/tag_duel.cpp b/server/gframe/tag_duel.cpp index daf67a6..955a454 100644 --- a/server/gframe/tag_duel.cpp +++ b/server/gframe/tag_duel.cpp @@ -1089,6 +1089,11 @@ void TagDuel::StartDuel(DuelPlayer* dp) { if(restart_phase != 0) // YGOL rules restart: frozen until Commit or Abort return; ygol_started = true; // YGOL rules restart: no Prepare after the first accepted START + // YGOL restart clock: the lobby tick shares the duel timer; a reservation window still open at START + // would tick into the duel and end it at once on "time limit up" (an untimed duel has a limit of 0) + if(has_restart_plan) + ExpireReservations(); + NetServer::StopDuelTimer(); for(auto& state : seat_state) state = CTOS_SeatState{}; // YGOL seat state: nobody is picking once the duel starts #ifndef YGOPRO_SERVER_MODE