Skip to content

Commit c389b9f

Browse files
committed
Don't scan hidden cards
1 parent 8659c79 commit c389b9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/ai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export function bestTarget(
135135
filter: Filter
136136
) {
137137
const info = cache.getCardInfo(game, card);
138-
const cards = this.filter(cache, game, { ...info.targets!, ...filter });
138+
const cards = this.filter(cache, game, { ...info.targets!, ...filter, hidden: false });
139139
if (cards.length == 0) {
140140
return undefined;
141141
}

0 commit comments

Comments
 (0)