Skip to content

Commit aca839c

Browse files
committed
async fix, cleaned up invasion of privacy some more
1 parent 94600de commit aca839c

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

src/clj/game/cards/operations.clj

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,22 +1466,20 @@
14661466
{:on-play
14671467
{:trace
14681468
{:base 2
1469-
:successful {:async true
1470-
:effect (req (let [x (- target (second targets))]
1471-
(continue-ability
1472-
state side
1473-
(with-revealed-hand :runner {:event-side :corp}
1474-
{:prompt (str "Trash up to " x " resources and/or events from the grip")
1475-
:choices {:req (req (and (in-hand? target)
1476-
(runner? target)
1477-
(or (resource? target)
1478-
(event? target))))
1479-
:max (req (min x (count (filter #(or (resource? %)
1480-
(event? %))
1481-
(:hand runner)))))}
1482-
:msg (msg "trash " (enumerate-cards targets))
1483-
:effect (req (trash-cards state side eid targets {:cause-card card}))})
1484-
card nil)))}
1469+
:successful (with-revealed-hand :runner {:event-side :corp}
1470+
{:prompt (msg "Trash up to " (- target (second targets))
1471+
" resources and/or events from the grip")
1472+
:choices {:req (req (and (in-hand? target)
1473+
(runner? target)
1474+
(or (resource? target)
1475+
(event? target))))
1476+
:max (req (min (- target (second targets))
1477+
(count (filter #(or (resource? %)
1478+
(event? %))
1479+
(:hand runner)))))}
1480+
:async true
1481+
:msg (msg "trash " (enumerate-cards targets))
1482+
:effect (req (trash-cards state side eid targets {:cause-card card}))})
14851483
:unsuccessful {:msg "take 1 bad publicity"
14861484
:async true
14871485
:effect (effect (gain-bad-publicity :corp eid 1))}}}})

0 commit comments

Comments
 (0)