Skip to content
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

attini vs hush test #7884

Merged
merged 1 commit into from
Jan 7, 2025
Merged
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
27 changes: 25 additions & 2 deletions test/clj/game/cards/ice_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -745,10 +745,10 @@

(deftest attini-threat-ability
(do-game
(new-game {:corp {:hand ["Attini" "Obokata Protocol"]
(new-game {:corp {:hand ["Attini"]
:score-area ["Obokata Protocol"]
:credits 10}
:runner {:hand [(qty "Sure Gamble" 3)]}})
(play-and-score state "Obokata Protocol")
(play-from-hand state :corp "Attini" "HQ")
(take-credits state :corp)
(let [att (get-ice state :hq 0)]
Expand All @@ -759,6 +759,29 @@
(fire-subs state att))
"Runner took 3 damage and couldn't choose to spend credits"))))

(deftest attini-threat-ability-vs-hush
(do-game
(new-game {:corp {:hand ["Attini"]
:score-area ["Obokata Protocol"]
:credits 10}
:runner {:hand ["Hush" (qty "Sure Gamble" 3)]
:credits 7}})
(play-from-hand state :corp "Attini" "HQ")
(take-credits state :corp)
(play-from-hand state :runner "Hush")
(click-card state :runner "Attini")
(let [att (get-ice state :hq 0)]
(run-on state "HQ")
(rez state :corp (refresh att))
(run-continue state)
(is (changed? [(count (:hand (get-runner))) 0]
(fire-subs state (refresh att))
(dotimes [_ 3]
(is (changed? [(:credit (get-runner)) -2]
(click-prompt state :runner "Pay 2 [Credits]"))
"Paid 2 to not take a net")))
"Took 0 net (paid it off)"))))

(deftest attini-threat-vs-prana-condenser
(do-game
(new-game {:corp {:hand ["Attini" "Prāna Condenser" "Obokata Protocol"]
Expand Down