From eea021f3de8eeeb4e38cc7182029c38cbfd8b264 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Thu, 15 Aug 2024 13:32:41 +0200 Subject: [PATCH] Updated messagecolor for discard button --- src/playermat/Playermat.ttslua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/playermat/Playermat.ttslua b/src/playermat/Playermat.ttslua index c14e4479..87d7dd6c 100644 --- a/src/playermat/Playermat.ttslua +++ b/src/playermat/Playermat.ttslua @@ -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")