Buff Artemis X, fix Amber Acorn crashing when duplicated

This commit is contained in:
Emik 2026-06-05 17:59:16 +02:00
parent 40b9757895
commit f9d66c1924
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 11 additions and 7 deletions

View file

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

View file

@ -668,14 +668,18 @@ joker {
return {card = card, xmult = card.ability.extra.xmult}
end
if card.debuff or
card.Roland_amber_waiting = card.Roland_amber_waiting and not context.after
local no = card.debuff or
context.blueprint or
not context.press_play or
card.ability.extra.context == context then
card.Roland_amber_waiting or
not context.press_play
if no and not context.forcetrigger then
return
end
card.ability.extra.context = context
card.Roland_amber_waiting = false
local cards = card.area.cards
local keys = f(cards):where(f().nq(card)):keys():table()
@ -877,8 +881,8 @@ joker {
cost = 6,
rarity = 2,
config = {extra = {
dollars = 2,
increase = 3,
dollars = 3,
increase = 4,
progress = 0,
flipped = false,
sequence = {"c_earth", "c_mars", "c_earth"},