Bugfix for mini id

This commit is contained in:
Chr1Z93 2024-08-03 00:56:17 +02:00
parent a1eb211a19
commit 1bc4e29ac4

View File

@ -450,7 +450,8 @@ function removeBusyZones(playerColor, zoneDecks)
-- check for existing minicard
local mat = guidReferenceApi.getObjectByOwnerAndType(playerColor, "Playermat")
local miniId = mat.getVar("activeInvestigatorId") .. "-m"
local activeInvestigatorData = playermatApi.getActiveInvestigatorData(playerColor)
local miniId = activeInvestigatorData.id .. "-m"
-- remove taboo suffix since we don't have this for minicards
miniId = miniId:gsub("-t", "")