Skip to content

fix Élivágar Bifurcation score effect #6446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/clj/game/cards/agendas.clj
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,8 @@
:waiting-prompt "Corp to make a decision"
:prompt "Choose a card to derez"
:choices {:card #(rezzed? %)}
:cancel-effect {:msg "decline to derez a card"}
:cancel-effect (effect (system-msg :runner "declines to use Élivágar Bifurcation to derez a card")
(effect-completed eid))
:effect (effect (derez target))}})

(defcard "Eden Fragment"
Expand Down
8 changes: 8 additions & 0 deletions test/clj/game/cards/agendas_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,14 @@
(click-card state :corp (refresh iwall))
(is (not (rezzed? (refresh iwall))) "ice wall was derezzed"))))

(deftest elivagar-bifurcation-declined
;; Élivágar Bifurcation score effect is optional
(do-game
(new-game {:corp {:hand ["Élivágar Bifurcation"]}})
(play-and-score state "Élivágar Bifurcation")
(click-prompt state :corp "Done")
(is (no-prompt? state :corp))))

(deftest eden-fragment
;; Test that Eden Fragment ignores the install cost of the first ice
(do-game
Expand Down