Fix saint debuff and rot lag
This commit is contained in:
parent
89b072cb45
commit
3002fe967f
2 changed files with 11 additions and 6 deletions
|
|
@ -17,5 +17,5 @@
|
|||
"conflicts": [
|
||||
"Jen"
|
||||
],
|
||||
"version": "1.5.6"
|
||||
"version": "1.5.7"
|
||||
}
|
||||
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue