Prevent Polaris from freezing cards with editions
This commit is contained in:
parent
2a880adb68
commit
a639a92c3c
2 changed files with 4 additions and 3 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue