Skip to content

Commit

Permalink
Merge pull request #7884 from NBKelly/attini-vs-hush
Browse files Browse the repository at this point in the history
attini vs hush test
  • Loading branch information
NoahTheDuke authored Jan 7, 2025
2 parents f77fd05 + 15c61a0 commit 591e9a0
Showing 1 changed file with 25 additions and 2 deletions.
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

0 comments on commit 591e9a0

Please sign in to comment.