Merge pull request #566 from argonui/blurse-bugfix

Added additional check to Bless / Curse Manager
This commit is contained in:
Entrox-Licher 2024-02-01 11:55:12 -05:00 committed by GitHub
commit d9c89ff2fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,7 +75,7 @@ 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 then
if 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