We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3734f1 commit e924644Copy full SHA for e924644
common/util.ts
@@ -276,7 +276,15 @@ export function tryPayCost(
276
} else if (prepared.some((card) => card.id == b.id)) {
277
return 1;
278
} else {
279
- return -cache.getCardInfo(game, b).colors.length - -cache.getCardInfo(game, a).colors.length;
+ const aCardInfo = cache.getCardInfo(game, a);
280
+ const bCardInfo = cache.getCardInfo(game, b);
281
+ if (aCardInfo.hasActivate && !bCardInfo.hasActivate) {
282
+ return 1;
283
+ } else if (bCardInfo.hasActivate && !aCardInfo.hasActivate) {
284
+ return -1;
285
+ } else {
286
+ return -bCardInfo.colors.length - -aCardInfo.colors.length;
287
+ }
288
}
289
});
290
0 commit comments