Cursor bugfix

This commit is contained in:
Pyrex 2024-02-05 22:46:36 -08:00
parent d9bb730ecd
commit 89b0dce6b9

View File

@ -35,7 +35,7 @@ end
function cursor:toggle_grab()
local acc,src,tar=self:acceptance_state()
if acc==acceptance_state.not_grabbed then
self.grabbed=self:hover_slot()
if (self.board.slots[self:hover_slot()]:peek()) self.grabbed=self:hover_slot()
elseif acc==acceptance_state.would_accept then
local card=src:pop()
tar:add(card)