Updated messagecolor for discard button
This commit is contained in:
parent
30c2a596be
commit
eea021f3de
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user