handle deleted token

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

View File

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