Merge pull request #653 from Entrox-Licher/exporter-fix
Campaign Exporter Bug Fix
This commit is contained in:
commit
63606c2e55
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user