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