From 3002fe967f04c39995f79c64bd725a39c06a0752 Mon Sep 17 00:00:00 2001 From: Emik Date: Fri, 2 May 2025 02:25:38 +0200 Subject: [PATCH] Fix saint debuff and rot lag --- manifest.json | 2 +- src/slugcat.lua | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index 58bb7d0..a755833 100644 --- a/manifest.json +++ b/manifest.json @@ -17,5 +17,5 @@ "conflicts": [ "Jen" ], - "version": "1.5.6" + "version": "1.5.7" } \ No newline at end of file diff --git a/src/slugcat.lua b/src/slugcat.lua index b261784..0e1bedd 100644 --- a/src/slugcat.lua +++ b/src/slugcat.lua @@ -493,6 +493,7 @@ SMODS.Joker { soul_pos = {x = 1, y = 0}, cost = 20, rarity = 4, + debuff_immune = true, blueprint_compat = true, loc_vars = function(_, info_queue, card) if Cryptid then @@ -539,6 +540,10 @@ SMODS.Joker { } end, 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 local extra = card.ability.extra card.children.floating_sprite:set_sprite_pos({x = extra.is_attuned and 2 or 1, y = 0}) @@ -584,8 +589,6 @@ SMODS.Joker { end if extra.is_attuned then - card.debuff = false - if card.ability then card.ability.perishable = false card.ability.perish_tally = 1e9 @@ -703,6 +706,10 @@ SMODS.Joker { end local function spawn() + if card.cloned then + return + end + local rot = copy_card(card) rot.cloned = true 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 Jane.q(spawn, 0.5) else - Jane.q(function() - card.cloned = false - end, 5) + card.cloned = false end end, }