discard hotkey from hand

This commit is contained in:
dscarpac 2024-01-23 07:56:47 -06:00
parent fc79c7b501
commit f0e0e26289

View File

@ -120,6 +120,8 @@ function getColorToDiscardFor(hoveredObject, playerColor)
local discardForMatColor
if inArea(pos, areaNearPlaymat) then
return closestMatColor
elseif pos.y > 3 then -- discard to closest mat if card is in a hand
return closestMatColor
else
return playmatApi.getMatColor(playerColor)
end