Fix hook
This commit is contained in:
parent
f723ea8a7e
commit
e4b252de90
2 changed files with 3 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
"id": "Roland",
|
"id": "Roland",
|
||||||
"name": "Roland",
|
"name": "Roland",
|
||||||
"prefix": "Roland",
|
"prefix": "Roland",
|
||||||
"version": "2.8.23",
|
"version": "2.8.24",
|
||||||
"badge_colour": "8BE9FD",
|
"badge_colour": "8BE9FD",
|
||||||
"display_name": "Roland",
|
"display_name": "Roland",
|
||||||
"main_file": "src/main.lua",
|
"main_file": "src/main.lua",
|
||||||
|
|
|
||||||
|
|
@ -221,7 +221,7 @@ q(function()
|
||||||
local orig_calculate = estate.calculate
|
local orig_calculate = estate.calculate
|
||||||
|
|
||||||
function estate:calculate(card, context, ...)
|
function estate:calculate(card, context, ...)
|
||||||
if not ((card or {}).edition or {}).Roland_frozen then
|
if not (card or {}).Roland_frozen or not (card.edition or {}).Roland_frozen then
|
||||||
return orig_calculate(self, card, context, ...)
|
return orig_calculate(self, card, context, ...)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -237,7 +237,7 @@ q(function()
|
||||||
local orig_loc_vars = estate.loc_vars
|
local orig_loc_vars = estate.loc_vars
|
||||||
|
|
||||||
function estate:loc_vars(info_queue, card, ...)
|
function estate:loc_vars(info_queue, card, ...)
|
||||||
if not ((card or {}).edition or {}).Roland_frozen then
|
if not (card or {}).Roland_frozen or not (card.edition or {}).Roland_frozen then
|
||||||
return orig_loc_vars(self, info_queue, card, ...)
|
return orig_loc_vars(self, info_queue, card, ...)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue