Disable card when debuffed

This commit is contained in:
Emik 2025-03-15 16:45:05 +01:00
parent bcbcf7946b
commit 8fe1ac19b4
Signed by untrusted user who does not match committer: emik
GPG key ID: 09CDFF9E5703688D
2 changed files with 3 additions and 3 deletions

View file

@ -15,6 +15,6 @@
"dependencies": [
"Steamodded (>=1.*)",
"Lovely (>=0.6)",
"Bakery (>=0.1.26)"
"Bakery (>=0.1.26~*)"
]
}

View file

@ -49,8 +49,8 @@ SMODS.Joker {
scared[2] or ""
}}
end,
Bakery_can_use = function(_, _)
return #G.GAME.tags ~= 0 or F.any(G.consumeables.cards, destructible)
Bakery_can_use = function(_, card)
return not card.debuff and (#G.GAME.tags ~= 0 or F.any(G.consumeables.cards, destructible))
end,
Bakery_use_joker = function(_, card)
local hand, destroyed = common_hand(), 0