improved code

This commit is contained in:
Chr1Z93 2024-10-17 15:51:39 +02:00
parent e83a8a54f5
commit 22092ad6ff

View File

@ -54,13 +54,8 @@ function processCard(cardData)
return false
end
local newBack
if tags.PlayerCard then
newBack = CARD_BACK_URL.PlayerCard
elseif tags.ScenarioCard then
newBack = CARD_BACK_URL.ScenarioCard
end
-- get correct back URL depending on tag
local newBack = tags.PlayerCard and CARD_BACK_URL.PlayerCard or CARD_BACK_URL.ScenarioCard
local customDeckId, customDeckData = next(cardData["CustomDeck"])
-- if this card already has the correct back settings