Allow Saint to remove Eternal stickers from Frozen cards
This commit is contained in:
parent
ced0a9ab08
commit
40e8d4086b
2 changed files with 7 additions and 9 deletions
|
|
@ -18,5 +18,5 @@
|
||||||
"conflicts": [
|
"conflicts": [
|
||||||
"Jen"
|
"Jen"
|
||||||
],
|
],
|
||||||
"version": "1.9.1"
|
"version": "1.9.2"
|
||||||
}
|
}
|
||||||
|
|
@ -722,19 +722,17 @@ SMODS.Joker {
|
||||||
Bakery_use_joker = function(_, card)
|
Bakery_use_joker = function(_, card)
|
||||||
for joker_index = 1, math.max(card.rank - 1, 1) do
|
for joker_index = 1, math.max(card.rank - 1, 1) do
|
||||||
local joker = G.jokers.cards[joker_index]
|
local joker = G.jokers.cards[joker_index]
|
||||||
|
|
||||||
if card.ability.extra.is_attuned and joker.Roland_frozen then
|
|
||||||
goto edition_only
|
|
||||||
end
|
|
||||||
|
|
||||||
joker:set_eternal(not joker.ability.eternal)
|
joker:set_eternal(not joker.ability.eternal)
|
||||||
|
|
||||||
|
if joker.Roland_frozen_ability then
|
||||||
|
joker.Roland_frozen_ability.eternal = joker.ability.eternal
|
||||||
|
end
|
||||||
|
|
||||||
if not card.ability.extra.is_attuned or joker.ability.eternal then
|
if not card.ability.extra.is_attuned or joker.ability.eternal then
|
||||||
joker:juice_up()
|
joker:juice_up()
|
||||||
goto no_edition
|
goto continue
|
||||||
end
|
end
|
||||||
|
|
||||||
::edition_only::
|
|
||||||
local edition = 1
|
local edition = 1
|
||||||
|
|
||||||
for ii, vv in ipairs(joker.edition and G.P_CENTER_POOLS.Edition or {}) do
|
for ii, vv in ipairs(joker.edition and G.P_CENTER_POOLS.Edition or {}) do
|
||||||
|
|
@ -746,7 +744,7 @@ SMODS.Joker {
|
||||||
|
|
||||||
local next = edition < #G.P_CENTER_POOLS.Edition and edition + 1 or 1
|
local next = edition < #G.P_CENTER_POOLS.Edition and edition + 1 or 1
|
||||||
joker:set_edition(G.P_CENTER_POOLS.Edition[next].key)
|
joker:set_edition(G.P_CENTER_POOLS.Edition[next].key)
|
||||||
::no_edition::
|
::continue::
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue