This commit is contained in:
@@ -35,6 +35,7 @@ const discardTokens = computed(() =>
|
||||
CardEffects.RESTACK_DISCARDED_ACTION,
|
||||
CardEffects.RESTACK_DISCARDED_CARD,
|
||||
CardEffects.RESTACK_DISCARDED_CHAMPION,
|
||||
CardEffects.SACRIFICE,
|
||||
].includes(t.effect)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -53,10 +53,10 @@ const isSelf = computed(
|
||||
const isSelfTurn = computed(() => isSelf && isPlayerTurn);
|
||||
|
||||
const cardTokens = computed(() =>
|
||||
props.game.currentTurn.tokens.filter((t) =>
|
||||
[CardEffects.SACRIFICE, CardEffects.PREPARE, CardEffects.STUN].includes(
|
||||
t.effect
|
||||
)
|
||||
props.game.currentTurn.tokens.filter(
|
||||
(t) =>
|
||||
[CardEffects.PREPARE, CardEffects.STUN].includes(t.effect) ||
|
||||
(CardEffects.SACRIFICE == t.effect && isSelf)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@ if (game.value == null) {
|
||||
throw new Error("game not found");
|
||||
}
|
||||
|
||||
console.log(game);
|
||||
const containers = computed<Record<string, Container>>(() => ({
|
||||
[game.value!.fireGems._id]: game.value!.fireGems,
|
||||
[game.value!.market._id]: game.value!.market,
|
||||
|
||||
Reference in New Issue
Block a user