Feat : add tokens, handle mutex effects

This commit is contained in:
2024-07-07 10:45:55 +02:00
parent 12d6de5074
commit db7959d7f1
110 changed files with 627 additions and 798 deletions
+12
View File
@@ -112,3 +112,15 @@ export async function buyCard(game: string, cardId: string) {
}
);
}
export async function lockEffect(game: string, effectId: string) {
const config = useRuntimeConfig();
await $fetch(
new URL(`games/${game}/turn/lockEffect/${effectId}`, config.public.endpoint)
.href,
{
method: "POST",
credentials: "include",
}
);
}