Merge pull request #848 from argonui/multihanded

Bugfix for multihanded upkeep
This commit is contained in:
dscarpac 2024-08-20 20:51:23 -05:00 committed by GitHub
commit 72bd4d7149
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,8 @@ function triggerUpkeepMultihanded(playerColor)
local colors = Player.getAvailableColors()
for _, handColor in ipairs(colors) do
local matColor = playermatApi.getMatColor(handColor)
if playermatApi.returnInvestigatorId(matColor) ~= "00000" and Player[handColor].seated == false then
local data = playermatApi.getActiveInvestigatorData(matColor)
if data.id ~= "00000" and Player[handColor].seated == false then
playermatApi.doUpkeepFromHotkey(matColor, playerColor)
end
end