Updated messagecolor for discard button

This commit is contained in:
Chr1Z93 2024-08-15 13:32:41 +02:00
parent 30c2a596be
commit eea021f3de

View File

@ -582,7 +582,9 @@ function flipTopCardFromDeck()
end
-- discard a random non-hidden card from hand
function doDiscardOne()
function doDiscardOne(_, clickedByColor)
updateMessageColor(clickedByColor)
local hand = Player[playerColor].getHandObjects()
if #hand == 0 then
broadcastToColor("Cannot discard from empty hand!", messageColor, "Red")