Skip to content

Commit 58c275c

Browse files
author
jolly[bot]
committed
jolly-bot: auto-format Lua files using Stylua
1 parent 84895c0 commit 58c275c

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

items/stake.lua

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,17 @@ local glass = {
180180
order = 21,
181181
colour = HEX("ffffff8f"),
182182
calculate = function(self, context)
183-
if context.destroy_card and context.cardarea == G.play and G.GAME.modifiers.cry_shatter_rate
184-
and SMODS.pseudorandom_probability(self, 'cry_shatter', 1, G.GAME.modifiers.cry_shatter_rate) and not SMODS.is_eternal(context.destroy_card) then
185-
context.destroy_card.cry_glass_trigger = true
186-
return { remove = true }
187-
end
188-
end,
183+
if
184+
context.destroy_card
185+
and context.cardarea == G.play
186+
and G.GAME.modifiers.cry_shatter_rate
187+
and SMODS.pseudorandom_probability(self, "cry_shatter", 1, G.GAME.modifiers.cry_shatter_rate)
188+
and not SMODS.is_eternal(context.destroy_card)
189+
then
190+
context.destroy_card.cry_glass_trigger = true
191+
return { remove = true }
192+
end
193+
end,
189194
}
190195
local sapphire = {
191196
object_type = "Stake",

lib/overrides.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,5 +2313,5 @@ end
23132313

23142314
local smods_shatters_ref = SMODS.shatters
23152315
function SMODS.shatters(card)
2316-
return card.cry_glass_trigger or smods_shatters_ref(card)
2317-
end
2316+
return card.cry_glass_trigger or smods_shatters_ref(card)
2317+
end

0 commit comments

Comments
 (0)