Merge pull request #562 from dscarpac/discard-from-hand

discard hotkey from hand
This commit is contained in:
Chr1Z 2024-01-28 10:44:17 +01:00 committed by GitHub
commit 8e1d4736fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,6 +120,8 @@ function getColorToDiscardFor(hoveredObject, playerColor)
local discardForMatColor
if inArea(pos, areaNearPlaymat) then
return closestMatColor
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)
end