improved code
This commit is contained in:
parent
e83a8a54f5
commit
22092ad6ff
@ -54,13 +54,8 @@ function processCard(cardData)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
local newBack
|
-- get correct back URL depending on tag
|
||||||
if tags.PlayerCard then
|
local newBack = tags.PlayerCard and CARD_BACK_URL.PlayerCard or CARD_BACK_URL.ScenarioCard
|
||||||
newBack = CARD_BACK_URL.PlayerCard
|
|
||||||
elseif tags.ScenarioCard then
|
|
||||||
newBack = CARD_BACK_URL.ScenarioCard
|
|
||||||
end
|
|
||||||
|
|
||||||
local customDeckId, customDeckData = next(cardData["CustomDeck"])
|
local customDeckId, customDeckData = next(cardData["CustomDeck"])
|
||||||
|
|
||||||
-- if this card already has the correct back settings
|
-- if this card already has the correct back settings
|
||||||
|
Loading…
Reference in New Issue
Block a user