Merge pull request #819 from argonui/discard-messagecolor
Updated messagecolor for discard button
This commit is contained in:
commit
26c23c8b4f
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user