Merge pull request #608 from argonui/bless-curse-manager

Bless Curse Manager: skip tokens from the Token Arranger
This commit is contained in:
BootleggerFinn 2024-02-20 19:10:41 -06:00 committed by GitHub
commit d8395f62d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,7 +74,9 @@ function initializeState()
-- find tokens in the play area -- find tokens in the play area
for _, obj in ipairs(getObjects()) do for _, obj in ipairs(getObjects()) do
local pos = obj.getPosition() local pos = obj.getPosition()
if pos.x > -65 and pos.x < 10 and pos.z > -35 and pos.z < 35 and obj.type == "Tile" then if obj.hasTag("tempToken") then
-- skip the tokens from the Token Arranger
elseif pos.x > -65 and pos.x < 10 and pos.z > -35 and pos.z < 35 and obj.type == "Tile" then
if obj.getName() == "Bless" then if obj.getName() == "Bless" then
table.insert(tokensTaken.Bless, obj.getGUID()) table.insert(tokensTaken.Bless, obj.getGUID())
numInPlay.Bless = numInPlay.Bless + 1 numInPlay.Bless = numInPlay.Bless + 1