From 15c61a0988fba3e5bc959bf5f18b892322449365 Mon Sep 17 00:00:00 2001 From: NB Kelly Date: Fri, 29 Nov 2024 14:27:06 +1300 Subject: [PATCH] attini vs hush test --- test/clj/game/cards/ice_test.clj | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/test/clj/game/cards/ice_test.clj b/test/clj/game/cards/ice_test.clj index d6bc58e19a..4a34ac93ff 100644 --- a/test/clj/game/cards/ice_test.clj +++ b/test/clj/game/cards/ice_test.clj @@ -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)] @@ -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"]