Skip to content

Commit 59f9edb

Browse files
committed
i am very smart!
1 parent 0667877 commit 59f9edb

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

items/spectral.lua

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,15 +1256,17 @@ local meld = {
12561256
info_queue[#info_queue + 1] = G.P_CENTERS.e_cry_double_sided
12571257
end,
12581258
use = function(self, card, area, copier)
1259-
local cards = Cryptid.get_highlighted_cards({ G.jokers }, card, 1, 1)
1259+
local cards = Cryptid.get_highlighted_cards({ G.jokers, G.hand }, card, 1, 1)
12601260
if #cards == 1 then
1261-
cards[1]:remove_from_deck(true)
1262-
cards[1]:set_edition({ cry_double_sided = true })
1263-
cards[1]:add_to_deck(true)
1264-
G.jokers:remove_from_highlighted(cards[1])
1265-
else
1266-
cards[1]:set_edition({ cry_double_sided = true })
1267-
G.hand:remove_from_highlighted(cards[1])
1261+
if cards[1].area == G.jokers then
1262+
cards[1]:remove_from_deck(true)
1263+
cards[1]:set_edition({ cry_double_sided = true })
1264+
cards[1]:add_to_deck(true)
1265+
G.jokers:remove_from_highlighted(cards[1])
1266+
else
1267+
cards[1]:set_edition({ cry_double_sided = true })
1268+
G.hand:remove_from_highlighted(cards[1])
1269+
end
12681270
end
12691271
end,
12701272
in_pool = function()

0 commit comments

Comments
 (0)