We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c097dce commit 0e8846eCopy full SHA for 0e8846e
lib/cross-mod.lua
@@ -13,13 +13,15 @@ SMODS.Joker:take_ownership("green_joker", {
13
and not context.blueprint
14
and context.other_card == context.full_hand[#context.full_hand]
15
then
16
- local prev_mult = card.ability.mult
17
- if card.ability.mult ~= prev_mult then
+ if card.ability.mult ~= 0 then
18
SMODS.scale_card(card, {
19
ref_table = card.ability,
20
ref_value = "mult",
+ scalar_table = card.ability,
21
scalar_value = "extra",
22
- operation = "-",
+ operation = function(ref_table, ref_value, initial, change)
23
+ ref_table[ref_value] = math.max(0, initial - change)
24
+ end,
25
message_key = "a_mult_minus",
26
message_colour = G.C.RED,
27
})
0 commit comments