added additional check
This commit is contained in:
parent
de7a868037
commit
90e1f29142
@ -75,7 +75,7 @@ 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 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
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user