From ed250737ab90d1a45ec35971dbc071c958839f39 Mon Sep 17 00:00:00 2001 From: Emik Date: Thu, 4 Jun 2026 23:33:18 +0200 Subject: [PATCH] Fix Frozen on Driver's License --- lovely.toml | 38 ++++++++++++++++++++++++++++++++++++++ manifest.json | 2 +- src/edition.lua | 4 +--- 3 files changed, 40 insertions(+), 4 deletions(-) diff --git a/lovely.toml b/lovely.toml index 497ff72..7f9a966 100644 --- a/lovely.toml +++ b/lovely.toml @@ -86,6 +86,44 @@ payload = """if next(SMODS.find_card "j_Roland_misfortune") then end""" match_indent = true +[[patches]] +[patches.pattern] +target = "card.lua" +pattern = """if self.ability.name == 'Throwback' then + self.ability.x_mult = 1 + G.GAME.skips*self.ability.extra +end +if self.ability.name == "Driver's License" then""" +position = "at" +payload = """if self.ability.name == 'Throwback' then + self.ability.x_mult = 1 + G.GAME.skips*self.ability.extra +end +if self.ability.name == "Driver's License" and not (self.edition and self.edition.Roland_frozen) then""" +match_indent = true + +[[patches]] +[patches.pattern] +target = "card.lua" +pattern = """if self.ability.name == "Steel Joker" then""" +position = "at" +payload = """if self.ability.name == "Steel Joker" and not (self.edition and self.edition.Roland_frozen) then""" +match_indent = true + +[[patches]] +[patches.pattern] +target = "card.lua" +pattern = """if self.ability.name == "Cloud 9" then""" +position = "at" +payload = """if self.ability.name == "Cloud 9" and not (self.edition and self.edition.Roland_frozen) then""" +match_indent = true + +[[patches]] +[patches.pattern] +target = "card.lua" +pattern = """if self.ability.name == "Stone Joker" then""" +position = "at" +payload = """if self.ability.name == "Stone Joker" and not (self.edition and self.edition.Roland_frozen) then""" +match_indent = true + [[patches]] [patches.regex] target = "card.lua" diff --git a/manifest.json b/manifest.json index 9fda55b..dce1102 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "id": "Roland", "name": "Roland", "prefix": "Roland", - "version": "2.8.6", + "version": "2.8.7", "badge_colour": "8BE9FD", "display_name": "Roland", "main_file": "src/main.lua", diff --git a/src/edition.lua b/src/edition.lua index c28dedd..a67d874 100644 --- a/src/edition.lua +++ b/src/edition.lua @@ -46,9 +46,7 @@ local function freeze(card) ---@param x T ---@return T local function copy(x) - return type(x) == "table" and f(x):map(copy):where(function(v, k) - return k ~= "nine_tally" or v ~= 0 - end):table() or x + return type(x) == "table" and f(x):map(copy):table() or x end if frozen_blocklist[(card.ability or {}).name] then