Skip to content

Commit

Permalink
use existing runner? function to check side
Browse files Browse the repository at this point in the history
  • Loading branch information
cardboardtech committed Jun 1, 2021
1 parent 6a9dcf1 commit 5f10f28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/game/core/pick_counters.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns game.core.pick-counters
(:require
[game.core.card :refer [get-card get-counters installed?]]
[game.core.card :refer [get-card get-counters installed? runner?]]
[game.core.card-defs :refer [card-def]]
[game.core.eid :refer [effect-completed make-eid complete-with-result]]
[game.core.engine :refer [resolve-ability trigger-event-sync]]
Expand Down Expand Up @@ -40,7 +40,7 @@
(= "Hivemind" (:title %)))
true)
(installed? %)
(= "Runner" (:side %))
(runner? %)
(pos? (get-counters % :virus)))}
:effect (req (let [target (update! state :runner (update-in target [:counter :virus] dec))
selected-cards (update selected-cards (:cid target)
Expand Down

0 comments on commit 5f10f28

Please sign in to comment.