Don't undo during restart animation

This commit is contained in:
Pyrex 2024-02-13 19:15:19 -08:00
parent 0912e90510
commit a7697fa1b2

View File

@ -41,7 +41,7 @@ function state_gameround:update()
if (btnp(2)) self.board.cursor:move_y(-1)
if (btnp(3)) self.board.cursor:move_y(1)
if (btnp(4)) self.board.cursor:toggle_grab()
if btnp(5) then
if btnp(5) and self.restart_frames < 4 then
if self.board.cursor:grabbed_card() then
self.board.cursor:drop_grab()
else