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)
|
table.insert(traumaValues, val)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
traumaValues = nil
|
||||||
printToAll("Trauma values could not be found in campaign log!", "Yellow")
|
printToAll("Trauma values could not be found in campaign log!", "Yellow")
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -283,6 +284,8 @@ function findUniqueObjectWithTag(tag)
|
|||||||
|
|
||||||
if #objects == 1 then
|
if #objects == 1 then
|
||||||
return objects[1]
|
return objects[1]
|
||||||
|
elseif #objects == 0 then
|
||||||
|
broadcastToAll("No " .. tag .. " detected; ensure it has the correct tag.", "Red")
|
||||||
else
|
else
|
||||||
broadcastToAll("More than one " .. tag .. " detected; delete all but one.", "Red")
|
broadcastToAll("More than one " .. tag .. " detected; delete all but one.", "Red")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user