Prevent Polaris from freezing cards with editions

This commit is contained in:
Emik 2026-07-19 23:07:43 +02:00
parent 2a880adb68
commit 8a99146f38
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 4 additions and 3 deletions

View file

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

View file

@ -70,8 +70,9 @@ local function ipairs_reversed(tbl)
end end
---@param card Card ---@param card Card
---@return boolean
local function is_frozen(card) local function is_frozen(card)
return card.edition and card.edition.key == "e_Roland_frozen" return card and card.edition and card.edition.key == "e_Roland_frozen"
end end
---@param card? Card|false|{suit: string, value: string} ---@param card? Card|false|{suit: string, value: string}
@ -461,7 +462,7 @@ joker {
card.Roland_polaris = true card.Roland_polaris = true
local first = context.scoring_hand[1] local first = context.scoring_hand[1]
if not first or first.edition and first.edition.Roland_frozen then if not first or first.edition then
return return
end end