Bugfix for multihanded upkeep

This commit is contained in:
Chr1Z93 2024-08-20 21:01:18 +02:00
parent 4938d3628c
commit 60375e1518

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