From e0f52954de2bd77ee97cb8898ab7e11636612815 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Fri, 10 Mar 2023 12:07:40 +0100 Subject: [PATCH] custom color support for clean up helper --- src/accessories/CleanUpHelper.ttslua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/accessories/CleanUpHelper.ttslua b/src/accessories/CleanUpHelper.ttslua index d0b8f3f4..5434eb6d 100644 --- a/src/accessories/CleanUpHelper.ttslua +++ b/src/accessories/CleanUpHelper.ttslua @@ -6,6 +6,7 @@ Cleans up the table for the next scenario in a campaign: --]] local tokenSpawnTrackerApi = require("core/token/TokenSpawnTrackerApi") +local playmatAPI = require("playermat/PlaymatApi") -- enable this for debugging local SHOW_RAYS = false @@ -296,7 +297,7 @@ function discardHands() for i = 1, 4 do local trashcan = getObjectFromGUID(TRASHCAN_GUIDS[i]) if trashcan == nil then return end - local hand = Player[COLORS[i]].getHandObjects() + local hand = Player[playmatAPI.getHandColor(COLORS[i])].getHandObjects() for j = #hand, 1, -1 do trashcan.putObject(hand[j]) end