fixed formatting

This commit is contained in:
Chr1Z93 2024-06-23 22:10:39 +02:00
parent 1d8d91e3ef
commit fd62c91418

View File

@ -4,7 +4,7 @@ local deckImporterApi = require("arkhamdb/DeckImporterApi")
local guidReferenceApi = require("core/GUIDReferenceApi")
local optionPanelApi = require("core/OptionPanelApi")
local playAreaApi = require("core/PlayAreaApi")
local playermatApi = require("playermat/PlayermatApi")
local playermatApi = require("playermat/PlayermatApi")
-- base data for token creation
local campaignTokenData = {
@ -95,7 +95,7 @@ function importFromToken(coin)
Wait.condition(
function()
local campaignBox = getObjectFromGUID(importData["box"])
campaignBox = getObjectFromGUID(importData["box"])
if #campaignBox.getObjects() > 0 then
placeCampaignFromToken(importData, coin)
else
@ -103,11 +103,11 @@ function importFromToken(coin)
end
end,
function()
local obj = getObjectFromGUID(importData["box"])
if obj == nil then
campaignBox = getObjectFromGUID(importData["box"])
if campaignBox == nil then
return false
else
return obj.type == "Bag"
return campaignBox.type == "Bag"
end
end,
2,