Merge pull request #653 from Entrox-Licher/exporter-fix

Campaign Exporter Bug Fix
This commit is contained in:
Chr1Z 2024-04-13 09:28:41 +02:00 committed by GitHub
commit 63606c2e55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -232,6 +232,7 @@ function createCampaignToken(_, playerColor, _)
table.insert(traumaValues, val)
end
else
traumaValues = nil
printToAll("Trauma values could not be found in campaign log!", "Yellow")
end
@ -283,6 +284,8 @@ function findUniqueObjectWithTag(tag)
if #objects == 1 then
return objects[1]
elseif #objects == 0 then
broadcastToAll("No " .. tag .. " detected; ensure it has the correct tag.", "Red")
else
broadcastToAll("More than one " .. tag .. " detected; delete all but one.", "Red")
end