From 60375e151855715b947a50da6d6e3a85faf07ba3 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Tue, 20 Aug 2024 21:01:18 +0200 Subject: [PATCH] Bugfix for multihanded upkeep --- src/core/GameKeyHandler.ttslua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/GameKeyHandler.ttslua b/src/core/GameKeyHandler.ttslua index ea808cc0..5e8e5def 100644 --- a/src/core/GameKeyHandler.ttslua +++ b/src/core/GameKeyHandler.ttslua @@ -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