|
2467 | 2467 | (deftest marcus-batty |
2468 | 2468 | ;; Marcus Batty |
2469 | 2469 | (do-game |
2470 | | - (new-game {:corp {:deck [(qty "Hedge Fund" 5)] |
2471 | | - :hand ["Marcus Batty" "Ice Wall"] |
2472 | | - :credits 10}}) |
2473 | | - (play-from-hand state :corp "Ice Wall" "HQ") |
2474 | | - (play-from-hand state :corp "Marcus Batty" "HQ") |
2475 | | - (let [iw (get-ice state :hq 0) |
2476 | | - mb (get-content state :hq 0)] |
2477 | | - (rez state :corp mb) |
2478 | | - (take-credits state :corp) |
2479 | | - (run-on state "HQ") |
2480 | | - (rez state :corp iw) |
2481 | | - (card-ability state :corp mb 0) |
2482 | | - (is (= :psi (prompt-type :corp))) |
2483 | | - (click-prompt state :corp "1 [Credits]") |
2484 | | - (click-prompt state :runner "0 [Credits]") |
2485 | | - (click-card state :corp iw) |
2486 | | - (click-prompt state :corp "End the run") |
2487 | | - (is (not (:run @state)) "Run has ended") |
2488 | | - (is (nil? (refresh mb)) "Marcus Batty is trashed")))) |
| 2470 | + (new-game {:corp {:deck [(qty "Hedge Fund" 5)] |
| 2471 | + :hand ["Marcus Batty" "Ice Wall"] |
| 2472 | + :credits 10}}) |
| 2473 | + (play-from-hand state :corp "Ice Wall" "HQ") |
| 2474 | + (play-from-hand state :corp "Marcus Batty" "HQ") |
| 2475 | + (let [iw (get-ice state :hq 0) |
| 2476 | + mb (get-content state :hq 0)] |
| 2477 | + (rez state :corp mb) |
| 2478 | + (take-credits state :corp) |
| 2479 | + (run-on state "HQ") |
| 2480 | + (rez state :corp iw) |
| 2481 | + (card-ability state :corp mb 0) |
| 2482 | + (is (= :psi (prompt-type :corp))) |
| 2483 | + (click-prompt state :corp "1 [Credits]") |
| 2484 | + (click-prompt state :runner "0 [Credits]") |
| 2485 | + (click-card state :corp iw) |
| 2486 | + (click-prompt state :corp "End the run") |
| 2487 | + (is (not (:run @state)) "Run has ended") |
| 2488 | + (is (nil? (refresh mb)) "Marcus Batty is trashed")))) |
| 2489 | + |
| 2490 | +(deftest marcus-batty-doesnt-mark-subs-as-fired |
| 2491 | + ;; Marcus Batty |
| 2492 | + (do-game |
| 2493 | + (new-game {:corp {:deck [(qty "Hedge Fund" 5)] |
| 2494 | + :hand ["Marcus Batty" "Funhouse"] |
| 2495 | + :credits 10}}) |
| 2496 | + (play-from-hand state :corp "Funhouse" "HQ") |
| 2497 | + (play-from-hand state :corp "Marcus Batty" "HQ") |
| 2498 | + (let [iw (get-ice state :hq 0) |
| 2499 | + mb (get-content state :hq 0)] |
| 2500 | + (rez state :corp mb) |
| 2501 | + (take-credits state :corp) |
| 2502 | + (run-on state "HQ") |
| 2503 | + (rez state :corp iw) |
| 2504 | + (run-continue state :encounter-ice) |
| 2505 | + (click-prompt state :runner "Take 1 tag") |
| 2506 | + (is (= 1 (count-tags state))) |
| 2507 | + (card-ability state :corp mb 0) |
| 2508 | + (is (= :psi (prompt-type :corp))) |
| 2509 | + (click-prompt state :corp "1 [Credits]") |
| 2510 | + (click-prompt state :runner "0 [Credits]") |
| 2511 | + (click-card state :corp iw) |
| 2512 | + (click-prompt state :corp "Give the Runner 1 tag unless they pay 4 [Credits]") |
| 2513 | + (click-prompt state :runner "Take 1 tag") |
| 2514 | + (is (= 2 (count-tags state))) |
| 2515 | + (is (not (-> iw refresh :subroutines first :fired)) "sub not considered fired (External trigger)") |
| 2516 | + (is (nil? (refresh mb)) "Marcus Batty is trashed") |
| 2517 | + (fire-subs state (refresh iw)) |
| 2518 | + (click-prompt state :runner "Take 1 tag") |
| 2519 | + (is (-> iw refresh :subroutines first :fired) "sub is now considered fired (regular trigger)")))) |
2489 | 2520 |
|
2490 | 2521 | (deftest mason-bellamy |
2491 | 2522 | (do-game |
|
0 commit comments