Skip to content

Commit

Permalink
Merge pull request #7838 from NBKelly/stinson-ignores-all-costs
Browse files Browse the repository at this point in the history
Stinson ignores all costs
  • Loading branch information
NoahTheDuke authored Oct 29, 2024
2 parents 6349c48 + bb3ef3e commit 3b1380d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clj/game/cards/upgrades.clj
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@
:effect (effect (play-instant eid (-> target
(assoc :rfg-instead-of-trashing true)
(assoc-in [:special :rfg-when-trashed] true))
{:ignore-cost true}))}]})
{:no-additional-cost true
:ignore-cost true}))}]})

(defcard "Calibration Testing"
{:install-req (req (remove #{"HQ" "R&D" "Archives"} targets))
Expand Down
11 changes: 11 additions & 0 deletions test/clj/game/cards/upgrades_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,17 @@
(click-prompt state :corp (find-card "IPO" (:discard (get-corp))))
(is (find-card "IPO" (:rfg (get-corp))) "IPO is removed from game"))))

(deftest stinson-ignores-all-costs
(do-game
(new-game {:corp {:hand ["Bryan Stinson"] :discard ["Ultraviolet Clearance"]}})
(play-from-hand state :corp "Bryan Stinson" "HQ")
(rez state :corp (get-content state :hq 0))
(is (changed? [(:click (get-corp)) -1
(:credit (get-corp)) 10]
(card-ability state :corp (get-content state :hq 0) 0)
(click-prompt state :corp "Ultraviolet Clearance"))
"Gained 10c in one click (ignoring the req and extra 2 clicks)")))

(deftest calibration-testing
;; Calibration Testing - advanceable / non-advanceable
(do-game
Expand Down

0 comments on commit 3b1380d

Please sign in to comment.