File tree Expand file tree Collapse file tree 4 files changed +17
-16
lines changed Expand file tree Collapse file tree 4 files changed +17
-16
lines changed Original file line number Diff line number Diff line change 159
159
(declare cards-summary )
160
160
161
161
(defn card-summary [card state side]
162
- (if (not ( is-public? card side) )
162
+ (if (is-public? card side)
163
163
(-> (cond-> card
164
164
(:host card) (-> (dissoc-in [:host :hosted ])
165
165
(update :host card-summary state side))
166
166
(:hosted card) (update :hosted cards-summary state side))
167
- (private-card ))
167
+ (playable? state side)
168
+ (card-abilities-summary state side)
169
+ (select-non-nil-keys card-keys))
168
170
(-> (cond-> card
169
171
(:host card) (-> (dissoc-in [:host :hosted ])
170
172
(update :host card-summary state side))
171
173
(:hosted card) (update :hosted cards-summary state side))
172
- (playable? state side)
173
- (card-abilities-summary state side)
174
- (select-non-nil-keys card-keys))))
174
+ (private-card ))))
175
175
176
176
(defn cards-summary [cards state side]
177
177
(when (seq cards)
Original file line number Diff line number Diff line change 154
154
players-blocked-user?
155
155
(-> (mapcat get-blocked-list (map :user (:players lobby)))
156
156
(set )
157
- (contains? (str/lower-case (:username user))))]
157
+ (contains? (str/lower-case (:username user " " ))))]
158
158
(not (or user-blocked-players? players-blocked-user?))))
159
159
lobbies)))
160
160
Original file line number Diff line number Diff line change 316
316
(defn facedown?
317
317
" Checks if the specified card is facedown."
318
318
[card]
319
- (or (when ( not (condition-counter? card) )
319
+ (or (when- not (condition-counter? card)
320
320
(= (get-zone card) #?(:clj [:rig :facedown ]
321
321
:cljs [" rig" " facedown" ])))
322
322
(:facedown card)))
456
456
(not (in-set-aside? card)))
457
457
(and (or (installed? card)
458
458
(:host card))
459
- (not (facedown? card)))
459
+ (or (faceup? card)
460
+ (not (facedown? card))))
460
461
(in-discard? card))
461
462
; ; public corp cards:
462
463
; ; * installed and rezzed
467
468
(:host card))
468
469
(or (operation? card)
469
470
(condition-counter? card)
470
- (rezzed ? card)))
471
+ (faceup ? card)))
471
472
(and (in-discard? card)
472
473
(faceup? card)))))))
473
474
Original file line number Diff line number Diff line change 609
609
610
610
(defn draw-facedown?
611
611
" Returns true if the installed card should be drawn face down."
612
- [{:keys [facedown host] :as card}]
613
- (if ( corp ? card)
614
- (and (not ( operation ? card) )
615
- (not (condition-counter ? card) )
616
- ( not ( faceup ? card) )
617
- ( not= ( :side host) " Runner " ) )
618
- facedown ))
612
+ [{:keys [host] :as card}]
613
+ (or ( facedown ? card)
614
+ (and (corp ? card)
615
+ (not (or ( operation ? card)
616
+ ( condition-counter ? card)
617
+ ( faceup? card )
618
+ ( = ( :side host) " Runner " )))) ))
619
619
620
620
(defn card-view
621
621
[{:keys [zone code type abilities counter
You can’t perform that action at this time.
0 commit comments