custom color support for clean up helper
This commit is contained in:
parent
38f4869ca3
commit
e0f52954de
@ -6,6 +6,7 @@ Cleans up the table for the next scenario in a campaign:
|
|||||||
--]]
|
--]]
|
||||||
|
|
||||||
local tokenSpawnTrackerApi = require("core/token/TokenSpawnTrackerApi")
|
local tokenSpawnTrackerApi = require("core/token/TokenSpawnTrackerApi")
|
||||||
|
local playmatAPI = require("playermat/PlaymatApi")
|
||||||
|
|
||||||
-- enable this for debugging
|
-- enable this for debugging
|
||||||
local SHOW_RAYS = false
|
local SHOW_RAYS = false
|
||||||
@ -296,7 +297,7 @@ function discardHands()
|
|||||||
for i = 1, 4 do
|
for i = 1, 4 do
|
||||||
local trashcan = getObjectFromGUID(TRASHCAN_GUIDS[i])
|
local trashcan = getObjectFromGUID(TRASHCAN_GUIDS[i])
|
||||||
if trashcan == nil then return end
|
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
|
for j = #hand, 1, -1 do
|
||||||
trashcan.putObject(hand[j])
|
trashcan.putObject(hand[j])
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user