diff --git a/map/last/last-map.js b/map/last/last-map.js index 51e88ed..5074dbf 100644 --- a/map/last/last-map.js +++ b/map/last/last-map.js @@ -102,15 +102,18 @@ countdown.innerHTML = time; time--; + if (point == 5) { + clearInterval(timer); + alert("clear!酒田の平和は守られた。"); + + } + if (time < 0) { clearInterval(timer); alert("Time's up!"); if (p1,p3,p4,p5,p6.getIcon() === moguraxIcon) { p1,p3,p4,p5,p6.setIcon(moguraIcon);} } - if (point == 5) { - clearInterval(timer); - alert("clear!酒田の平和は守られた。"); - } + }, 1000); }