Merge pull request #797 from argonui/deck-importer

Bugfix for mini id getting by Deck Importer
This commit is contained in:
dscarpac 2024-08-02 18:01:37 -05:00 committed by GitHub
commit c70de840f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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", "")