Skip to content

Commit

Permalink
ice and chronos tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NBKelly committed Nov 2, 2024
1 parent 965233f commit fdce7ad
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
5 changes: 2 additions & 3 deletions test/clj/game/cards/ice_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2157,8 +2157,7 @@
(click-prompt state :corp "Program")
(card-subroutine state :corp ef 0)
(is (= 0 (count (:discard (get-runner)))) "Heap is empty")
(is (= 2 (count (prompt-buttons :corp))) "Only options: Corroder and Done")
(click-prompt state :corp "Corroder")
(click-card state :corp "Corroder")
(is (not (find-card "Corroder" (:hand (get-runner)))) "Corroder got trashed")
(is (= 1 (count (:discard (get-runner)))) "Corroder in heap")
(card-subroutine state :corp ef 0)
Expand Down Expand Up @@ -2953,7 +2952,7 @@
(click-prompt state :corp "3") ; boost to trace strength 5
(click-prompt state :runner "0")
(click-prompt state :corp "Yes")
(click-prompt state :corp (find-card "Sure Gamble" (:hand (get-runner))))
(click-card state :corp "Sure Gamble")
(is (= 2 (count (:discard (get-runner)))) "Did 2 net damage"))))

(deftest gold-farmer-subroutine-test
Expand Down
33 changes: 16 additions & 17 deletions test/clj/game/cards/identities_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -973,25 +973,24 @@
(do-game
(new-game {:corp {:id "Chronos Protocol: Selective Mind-mapping"
:hand [(qty "Neural EMP" 2)]}
:runner {:deck [(qty "Imp" 3)]}})
:runner {:deck ["Imp" "Ika" "Inti"]}})
(take-credits state :corp)
(damage state :corp :net 1)
(click-prompt state :corp "Yes")
(let [imp (find-card "Imp" (:hand (get-runner)))]
(click-prompt state :corp imp)
(is (= 1 (count (:discard (get-runner)))))
(damage state :corp :net 1)
(is (no-prompt? state :corp) "No choice on second net damage")
(is (= 2 (count (:discard (get-runner)))))
(run-empty-server state "Archives")
(take-credits state :runner)
(core/move state :runner (find-card "Imp" (:discard (get-runner))) :hand)
(play-from-hand state :corp "Neural EMP")
(click-prompt state :corp "No")
(is (= 2 (count (:discard (get-runner)))) "Damage dealt after declining ability")
(play-from-hand state :corp "Neural EMP")
(is (no-prompt? state :corp) "No choice after declining on first damage")
(is (= 3 (count (:discard (get-runner))))))))
(click-card state :corp "Imp")
(is (= 1 (count (:discard (get-runner)))))
(damage state :corp :net 1)
(is (no-prompt? state :corp) "No choice on second net damage")
(is (= 2 (count (:discard (get-runner)))))
(run-empty-server state "Archives")
(take-credits state :runner)
(core/move state :runner (find-card "Imp" (:discard (get-runner))) :hand)
(play-from-hand state :corp "Neural EMP")
(click-prompt state :corp "No")
(is (= 2 (count (:discard (get-runner)))) "Damage dealt after declining ability")
(play-from-hand state :corp "Neural EMP")
(is (no-prompt? state :corp) "No choice after declining on first damage")
(is (= 3 (count (:discard (get-runner)))))))

(deftest chronos-protocol-selective-mind-mapping-with-obokata-pay-4-net-damage-to-steal-only-3-damage-left-after-chronos-no-trigger-of-damage-prevent
;; with Obokata: Pay 4 net damage to steal. Only 3 damage left after Chronos. No trigger of damage prevent.
Expand All @@ -1006,7 +1005,7 @@
(run-empty-server state "Server 1")
(click-prompt state :runner "Pay to steal")
(click-prompt state :corp "Yes")
(click-prompt state :corp (find-card "Inti" (:hand (get-runner))))
(click-card state :corp "Inti")
(is (no-prompt? state :runner) "Feedback Filter net damage prevention opportunity not given")
(is (= 4 (count (:discard (get-runner)))) "Runner paid 4 net damage")))

Expand Down

0 comments on commit fdce7ad

Please sign in to comment.