fixed issue where phantom jokers would cause the game to freeze

This commit is contained in:
davidmolgard
2025-03-24 19:06:09 -06:00
parent bc324e939a
commit c494be3dbe

View File

@@ -79,6 +79,9 @@ function DV.PRE.update_on_card_order_change(cardarea)
local prev_order = nil
if cardarea.config.type == 'joker' and cardarea.cards[1].ability.set == 'Joker' then
if cardarea.cards[1].edition and cardarea.cards[1].edition.mp_phantom then
return
end
-- Note that the consumables cardarea also has type 'joker' so must verify by checking first card.
prev_order = DV.PRE.joker_order
elseif cardarea.config.type == 'hand' then