From 652af49b41c0653983c2eeaacb27235499b70690 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Tue, 20 Feb 2024 20:40:28 +0100 Subject: [PATCH] skip tokens from the Token Arranger --- src/chaosbag/BlessCurseManager.ttslua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/chaosbag/BlessCurseManager.ttslua b/src/chaosbag/BlessCurseManager.ttslua index e0cecbaa..db8ca1bc 100644 --- a/src/chaosbag/BlessCurseManager.ttslua +++ b/src/chaosbag/BlessCurseManager.ttslua @@ -74,7 +74,9 @@ function initializeState() -- find tokens in the play area for _, obj in ipairs(getObjects()) do 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 table.insert(tokensTaken.Bless, obj.getGUID()) numInPlay.Bless = numInPlay.Bless + 1