diff --git a/src/core/GameKeyHandler.ttslua b/src/core/GameKeyHandler.ttslua index adb2d4bf..e3faced4 100644 --- a/src/core/GameKeyHandler.ttslua +++ b/src/core/GameKeyHandler.ttslua @@ -174,7 +174,7 @@ function discardTopDeck(playerColor, hoveredObject) else takenCard = hoveredObject end - Wait.frames(function() performDiscard(playerColor, hoveredObject) end, 1) + Wait.frames(function() performDiscard(playerColor, takenCard) end, 1) end -- helper function to get the player to trigger the discard function for