Fix crash and localization
This commit is contained in:
parent
2bd613b458
commit
8d8574bf86
3 changed files with 11 additions and 8 deletions
|
|
@ -6,7 +6,7 @@
|
|||
"author": [
|
||||
"Emik"
|
||||
],
|
||||
"version": "2.2.3",
|
||||
"version": "2.2.4",
|
||||
"badge_colour": "8BE9FD",
|
||||
"main_file": "src/main.lua",
|
||||
"badge_text_colour": "44475A",
|
||||
|
|
|
|||
|
|
@ -53,10 +53,15 @@ local function freeze(card)
|
|||
|
||||
card.Roland_frozen_ability = card.Roland_frozen_ability or copy(card.ability)
|
||||
card.ability = card.Roland_frozen_ability and copy(card.Roland_frozen_ability) or card.ability
|
||||
local ret = card.Roland_frozen_ability
|
||||
local ability = card.ability
|
||||
local ability, ret = card.ability, card.Roland_frozen_ability
|
||||
|
||||
if type(ability) ~= "table" or not ability.name or not G.GAME.current_round then
|
||||
if type(ability) ~= "table" then
|
||||
return ret
|
||||
end
|
||||
|
||||
ability.seal = ability.seal or {}
|
||||
|
||||
if not ability.name or not G.GAME.current_round then
|
||||
return ret
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
local f, q, u = unpack(... or require "lib.shared")
|
||||
|
||||
local negative = {key = "e_negative_consumable", set = "Edition", config = {extra = 1}}
|
||||
|
||||
local spectral = (function()
|
||||
local x = 0
|
||||
|
||||
|
|
@ -42,7 +40,7 @@ spectral {
|
|||
artist = "aster",
|
||||
config = {extra = {amount = 1, hand = -2}},
|
||||
loc_vars = function(_, info_queue, card)
|
||||
table.insert(info_queue, negative)
|
||||
table.insert(info_queue, {key = "e_negative_playing_card", set = "Edition", config = {extra = 1}})
|
||||
return {vars = {card.ability.extra.amount, card.ability.extra.hand}}
|
||||
end,
|
||||
can_use = function(_, card)
|
||||
|
|
@ -148,7 +146,7 @@ local void = spectral {
|
|||
soul_set = "Spectral",
|
||||
config = {extra = {amount = 2}},
|
||||
loc_vars = function(_, info_queue, card)
|
||||
table.insert(info_queue, negative)
|
||||
table.insert(info_queue, {key = "e_negative_consumable", set = "Edition", config = {extra = 1}})
|
||||
table.insert(info_queue, G.P_CENTERS.c_cryptid)
|
||||
return {vars = {card.ability.extra.amount}}
|
||||
end,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue