Skip to content

Commit d2ead24

Browse files
authored
Merge pull request #8104 from NBKelly/transfer-of-wealth-enforces-server
transfer-of-wealth and illumination enforce server
2 parents 158c13b + f195374 commit d2ead24

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

src/clj/game/cards/events.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,7 +1830,8 @@
18301830
:events [(assoc (install-fn 3)
18311831
:event :successful-run
18321832
:interactive (req true)
1833-
:req (req this-card-run))]}))
1833+
:req (req (and this-card-run
1834+
(= :rd (target-server context)))))]}))
18341835

18351836
(defcard "Immolation Script"
18361837
{:makes-run true
@@ -4023,7 +4024,8 @@
40234024
:events [{:event :successful-run
40244025
:interactive (req true)
40254026
:automatic :drain-credits
4026-
:req (req this-card-run)
4027+
:req (req (and this-card-run
4028+
(= :hq (target-server context))))
40274029
:msg "take 1 tag"
40284030
:async true
40294031
:effect (req (wait-for (gain-tags state :runner 1)

test/clj/game/cards/events_test.clj

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7490,6 +7490,23 @@
74907490
"Siphoned bigly")
74917491
(click-prompt state :runner "No action")))
74927492

7493+
(deftest transfer-of-wealth-vs-redirect
7494+
(do-game
7495+
(new-game {:runner {:hand ["Transfer of Wealth"]}
7496+
:corp {:hand ["Proprionegation"]}})
7497+
(play-and-score state "Proprionegation")
7498+
(take-credits state :corp)
7499+
(play-from-hand state :runner "Transfer of Wealth")
7500+
(card-ability state :corp (get-scored state :corp 0) 0)
7501+
(run-continue state)
7502+
(is (changed? [(:credit (get-corp)) 0
7503+
(:credit (get-runner)) 0
7504+
(count-tags state) 0
7505+
(:click (get-runner)) 0]
7506+
(run-continue-until state :success))
7507+
"Not siphoned")
7508+
(is (no-prompt? state :runner))))
7509+
74937510
(deftest trade-in
74947511
;; Trade-in - trash an installed Hardware, gain credits equal to half of install cost,
74957512
;; search stack for Hardware and add to grip

0 commit comments

Comments
 (0)