Merge pull request #565 from argonui/token-checker

Added additional check to TokenChecker
This commit is contained in:
Entrox-Licher 2024-02-01 11:54:59 -05:00 committed by GitHub
commit 72fb8ca430
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ do
-- returns true if the passed object is a chaos token (by name)
TokenChecker.isChaosToken = function(obj)
if CHAOS_TOKEN_NAMES[obj.getName()] then
if obj.type == "Tile" and CHAOS_TOKEN_NAMES[obj.getName()] then
return true
else
return false