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