Fix saint debuff and rot lag

This commit is contained in:
Emik 2025-05-02 02:25:38 +02:00
parent 89b072cb45
commit 3002fe967f
Signed by: emik
GPG key ID: 09CDFF9E5703688D
2 changed files with 11 additions and 6 deletions

View file

@ -17,5 +17,5 @@
"conflicts": [ "conflicts": [
"Jen" "Jen"
], ],
"version": "1.5.6" "version": "1.5.7"
} }

View file

@ -493,6 +493,7 @@ SMODS.Joker {
soul_pos = {x = 1, y = 0}, soul_pos = {x = 1, y = 0},
cost = 20, cost = 20,
rarity = 4, rarity = 4,
debuff_immune = true,
blueprint_compat = true, blueprint_compat = true,
loc_vars = function(_, info_queue, card) loc_vars = function(_, info_queue, card)
if Cryptid then if Cryptid then
@ -539,6 +540,10 @@ SMODS.Joker {
} }
end, end,
update = function(_, card, _) update = function(_, card, _)
if card.ability.extra.is_attuned then
card.debuff = false
end
if card.added_to_deck and card.children.center and card.children.floating_sprite then if card.added_to_deck and card.children.center and card.children.floating_sprite then
local extra = card.ability.extra local extra = card.ability.extra
card.children.floating_sprite:set_sprite_pos({x = extra.is_attuned and 2 or 1, y = 0}) card.children.floating_sprite:set_sprite_pos({x = extra.is_attuned and 2 or 1, y = 0})
@ -584,8 +589,6 @@ SMODS.Joker {
end end
if extra.is_attuned then if extra.is_attuned then
card.debuff = false
if card.ability then if card.ability then
card.ability.perishable = false card.ability.perishable = false
card.ability.perish_tally = 1e9 card.ability.perish_tally = 1e9
@ -703,6 +706,10 @@ SMODS.Joker {
end end
local function spawn() local function spawn()
if card.cloned then
return
end
local rot = copy_card(card) local rot = copy_card(card)
rot.cloned = true rot.cloned = true
rot:add_to_deck() rot:add_to_deck()
@ -713,9 +720,7 @@ SMODS.Joker {
if has_room() and not card.cloned and Jane.is_end_of_ante(context, card) then if has_room() and not card.cloned and Jane.is_end_of_ante(context, card) then
Jane.q(spawn, 0.5) Jane.q(spawn, 0.5)
else else
Jane.q(function() card.cloned = false
card.cloned = false
end, 5)
end end
end, end,
} }