From e49c7230f00ffe18af93158e6f76519e1ace443f Mon Sep 17 00:00:00 2001 From: Cethtral <126963642+Cethtral@users.noreply.github.com> Date: Sun, 23 Nov 2025 05:35:08 +0800 Subject: [PATCH 1/2] Fix crash with Ortalab Ortalab loteria and zodiac card now use different ID, but magica skill still creating the old ones.(result in crash when opening corresponding pack) --- lovely.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lovely.toml b/lovely.toml index 1793b42..83ad90c 100644 --- a/lovely.toml +++ b/lovely.toml @@ -1010,7 +1010,7 @@ if pointer_index and (pointer_index == i) and not pointer_found then end if self.ability.name:find('Arcana') and skill_active("sk_ortalab_magica_1") then if pseudorandom('magica') < 0.4 then - card = create_card("Loteria", G.pack_cards, nil, nil, true, true, nil, 'pl1') + card = create_card("ortalab_loteria", G.pack_cards, nil, nil, true, true, nil, 'pl1') card:start_materialize({G.C.WHITE, G.C.WHITE}, nil, 1.5*G.SETTINGS.GAMESPEED) card.T.x = self.T.x + 0 card.T.y = self.T.y @@ -1020,7 +1020,7 @@ if self.ability.name:find('Arcana') and skill_active("sk_ortalab_magica_1") then end if self.ability.name:find('Celestial') and skill_active("sk_ortalab_starry_2") then if pseudorandom('magica') < 0.4 then - card = create_card("Zodiac", G.pack_cards, nil, nil, true, true, nil, 'pl1') + card = create_card("ortalab_zodiac", G.pack_cards, nil, nil, true, true, nil, 'pl1') card:start_materialize({G.C.WHITE, G.C.WHITE}, nil, 1.5*G.SETTINGS.GAMESPEED) card.T.x = self.T.x + 0 card.T.y = self.T.y @@ -2821,4 +2821,4 @@ target = 'card.lua' pattern = '''if context.repetition then''' position = 'at' payload = '''if context.repetition and context.repetition_only then''' -match_indent = true \ No newline at end of file +match_indent = true From 11e2191fece786e1c4d1b4886eddd0a33fdda3a8 Mon Sep 17 00:00:00 2001 From: Cethtral <126963642+Cethtral@users.noreply.github.com> Date: Sun, 23 Nov 2025 05:40:45 +0800 Subject: [PATCH 2/2] Fix crash with Ortalab dont need that "pl1" too --- lovely.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lovely.toml b/lovely.toml index 83ad90c..ff8f8b3 100644 --- a/lovely.toml +++ b/lovely.toml @@ -1010,7 +1010,7 @@ if pointer_index and (pointer_index == i) and not pointer_found then end if self.ability.name:find('Arcana') and skill_active("sk_ortalab_magica_1") then if pseudorandom('magica') < 0.4 then - card = create_card("ortalab_loteria", G.pack_cards, nil, nil, true, true, nil, 'pl1') + card = create_card("ortalab_loteria", G.pack_cards, nil, nil, true, true, nil, nil) card:start_materialize({G.C.WHITE, G.C.WHITE}, nil, 1.5*G.SETTINGS.GAMESPEED) card.T.x = self.T.x + 0 card.T.y = self.T.y @@ -1020,7 +1020,7 @@ if self.ability.name:find('Arcana') and skill_active("sk_ortalab_magica_1") then end if self.ability.name:find('Celestial') and skill_active("sk_ortalab_starry_2") then if pseudorandom('magica') < 0.4 then - card = create_card("ortalab_zodiac", G.pack_cards, nil, nil, true, true, nil, 'pl1') + card = create_card("ortalab_zodiac", G.pack_cards, nil, nil, true, true, nil, nil) card:start_materialize({G.C.WHITE, G.C.WHITE}, nil, 1.5*G.SETTINGS.GAMESPEED) card.T.x = self.T.x + 0 card.T.y = self.T.y