handle deleted token

This commit is contained in:
Chr1Z93 2023-01-05 21:01:02 +01:00
parent 5a90702526
commit 8284197899

View File

@ -600,7 +600,9 @@ function maybeUpdateActiveInvestigator(card)
["08016"] = 14 -- Bob Jenkins ["08016"] = 14 -- Bob Jenkins
} }
setObjectState(smallToken, SPECIAL_ACTIONS[activeInvestigatorId] or STATE_TABLE[class]) if smallToken ~= nil then
setObjectState(smallToken, SPECIAL_ACTIONS[activeInvestigatorId] or STATE_TABLE[class])
end
end end
function setObjectState(obj, stateId) function setObjectState(obj, stateId)