Skip to content

Commit 70ac0bd

Browse files
author
jolly[bot]
committed
jolly-bot: auto-format Lua files using Stylua
1 parent 856229e commit 70ac0bd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

items/exotic.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,8 +1466,7 @@ local duplicare = {
14661466
context.post_trigger
14671467
and context.other_joker ~= card
14681468
and Cryptid.isNonRollProbabilityContext(context.other_context)
1469-
)
1470-
or (context.individual and context.cardarea == G.play)
1469+
) or (context.individual and context.cardarea == G.play)
14711470
)
14721471
then
14731472
card.ability.extra.Xmult = lenient_bignum(to_big(card.ability.extra.Xmult) + card.ability.extra.Xmult_mod)

lib/misc.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,13 +1461,15 @@ end
14611461
-- for Cryptid.isNonRollProbabilityContext
14621462
local probability_contexts = {
14631463
"mod_probability",
1464-
"fix_probability"
1464+
"fix_probability",
14651465
}
14661466

14671467
-- Checks if a context table is a probability context called outside of a roll
14681468
function Cryptid.isNonRollProbabilityContext(context)
14691469
for _, ctx in ipairs(probability_contexts) do
1470-
if context[ctx] then return context.from_roll end
1470+
if context[ctx] then
1471+
return context.from_roll
1472+
end
14711473
end
14721474

14731475
return true

0 commit comments

Comments
 (0)