used formula instead

This commit is contained in:
dscarpac 2024-01-27 12:00:36 -06:00
parent f0e0e26289
commit bf787dc5e4

View File

@ -120,7 +120,7 @@ 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
elseif pos.y > (Player[playerColor].getHandTransform().position.y - (Player[playerColor].getHandTransform().scale.y / 2)) then -- discard to closest mat if card is in a hand
return closestMatColor
else
return playmatApi.getMatColor(playerColor)