Skip to content

Commit fca805d

Browse files
Monster fix
xd
1 parent 7873b01 commit fca805d

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

items/m.lua

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,14 +1844,15 @@ local longboi = {
18441844
calculate = function(self, card, context)
18451845
if context.end_of_round and not context.individual and not context.repetition then
18461846
card.ability.extra.bonus = math.max(card.ability.extra.bonus, card.ability.immutable.max_bonus) -- maybe remove this entirely
1847-
if not context.retrigger_joker and (not msg or type(msg) == "string") then
1848-
return {
1849-
card_eval_status_text(context.blueprint_card or card, "extra", nil, nil, nil, {
1850-
message = msg or localize("cry_m_ex"),
1851-
colour = G.C.FILTER,
1852-
}),
1853-
}
1854-
end
1847+
local msg = SMODS.scale_card(card, {
1848+
ref_table = G.GAME,
1849+
ref_value = "monstermult",
1850+
scalar_table = card.ability.extra,
1851+
scalar_value = "bonus",
1852+
scaling_message = {
1853+
message = localize("cry_m_ex"),
1854+
},
1855+
})
18551856
elseif context.joker_main and to_big(card.ability.extra.monster) > to_big(1) then
18561857
return {
18571858
message = localize({
@@ -1864,6 +1865,13 @@ local longboi = {
18641865
end
18651866
if context.forcetrigger then
18661867
card.ability.extra.bonus = math.max(card.ability.extra.bonus, card.ability.immutable.max_bonus) -- maybe remove this entirely
1868+
SMODS.scale_card(card, {
1869+
ref_table = G.GAME,
1870+
ref_value = "monstermult",
1871+
scalar_table = card.ability.extra,
1872+
scalar_value = "bonus",
1873+
no_message = true,
1874+
})
18671875
return {
18681876
message = localize({
18691877
type = "variable",

0 commit comments

Comments
 (0)