Merge pull request #961 from argonui/investigator-callback

Playermat: fixed investigator callback (used matColor instead of handColor)
This commit is contained in:
dscarpac 2024-11-03 11:55:02 -06:00 committed by GitHub
commit 3b305ba5ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1397,10 +1397,10 @@ function newInvestigatorCallback(newId)
updateMessageColor()
-- remove existing object that was placed for a specific investigator
local obj = guidReferenceApi.getObjectByOwnerAndType(playerColor, "InvestigatorSpecifics")
local obj = guidReferenceApi.getObjectByOwnerAndType(matColor, "InvestigatorSpecifics")
if obj ~= nil then
obj.destruct()
guidReferenceApi.editIndex(playerColor, "InvestigatorSpecifics")
guidReferenceApi.editIndex(matColor, "InvestigatorSpecifics")
end
if newId == "01005-p" or newId == "01005-pf" then -- parallel Wendy Adams