Merge pull request #819 from argonui/discard-messagecolor

Updated messagecolor for discard button
This commit is contained in:
dscarpac 2024-08-15 10:16:11 -05:00 committed by GitHub
commit 26c23c8b4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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