Fix charm-related crash

This commit is contained in:
Emik 2026-06-23 18:49:27 +02:00
parent 0bb1eed9d5
commit 2f55344a90
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
3 changed files with 7 additions and 4 deletions

View file

@ -3,7 +3,7 @@
"id": "Roland",
"name": "Roland",
"prefix": "Roland",
"version": "2.9.24",
"version": "2.9.25",
"badge_colour": "8BE9FD",
"display_name": "Roland",
"main_file": "src/main.lua",

View file

@ -261,7 +261,7 @@ local orig_apply_to_run = Tag.apply_to_run
function Tag:apply_to_run(...)
if G.GAME.Bakery_charm == "BakeryCharm_Roland_wii" and
G.Bakery_charm_area.cards[1].config.center.ability.extra.active then
G.Bakery_charm_area.cards[1].ability.extra.active then
return
end

View file

@ -19,15 +19,18 @@ Balatest = Balatest
--- @type { constants?: { TEN: table }, new: (fun(self: self, arr?: number[], sign?: number, noNormalize?: boolean): table), pow: (fun(x: number, y: number): number) }
Big = Big
--- @type table
--- @type table?
CardSleeves = CardSleeves
--- @type fun(obj: SMODS.Back): SMODS.Back
--- @type table|fun(obj: SMODS.Back): SMODS.Back
CardSleeves.Sleeve = CardSleeves.Sleeve
--- @type fun(area: CardArea, ...: ...): Card
create_card_for_shop = create_card_for_shop
--- @type boolean|table
G.Bakery_charm_area.cards[1].ability.extra = G.Bakery_charm_area.cards[1].ability.extra
SMODS.Mods.Roland.config = require "config"
---@type userdata|{getWidth: fun(self: self): number}