Merge pull request #161 from argonui/small-action-token-bugfix
Playermat: Handle deleted small action token
This commit is contained in:
commit
6a003c33dc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user