Merge pull request #848 from argonui/multihanded
Bugfix for multihanded upkeep
This commit is contained in:
commit
72bd4d7149
@ -50,7 +50,8 @@ function triggerUpkeepMultihanded(playerColor)
|
|||||||
local colors = Player.getAvailableColors()
|
local colors = Player.getAvailableColors()
|
||||||
for _, handColor in ipairs(colors) do
|
for _, handColor in ipairs(colors) do
|
||||||
local matColor = playermatApi.getMatColor(handColor)
|
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)
|
playermatApi.doUpkeepFromHotkey(matColor, playerColor)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user