From 1615e5f166e49757c3e9cd863ec9991456c7d93a Mon Sep 17 00:00:00 2001 From: yasevret Date: Sun, 6 Dec 2020 15:27:13 +0100 Subject: [PATCH] Petite modif --- SwichGIT/src/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SwichGIT/src/js/main.js b/SwichGIT/src/js/main.js index 38e1d81..470a0aa 100644 --- a/SwichGIT/src/js/main.js +++ b/SwichGIT/src/js/main.js @@ -333,12 +333,12 @@ function genererTouteslesCartes3_4Possibles() { if (i != k + 3 * j) { if (k == 0) { AllFigure.push(new Figure(TypeFigure.Moyen, FormeFigure.Rond, i % 3, Math.floor(i / 3))); - var uneCarte = new Carte(i + 12 * j, AllFigure); + var uneCarte = new Carte(i + 12 * j , AllFigure); deckPartie.push(uneCarte); document.getElementById("containcards").appendChild(uneCarte.link); } else if (i != 2 && i != 5 && i != 8 && i != 11) { AllFigure.push(new Figure(TypeFigure.Moyen, FormeFigure.Rond, i % 3, Math.floor(i / 3))); - var uneCarte = new Carte(i + 12 * j, AllFigure); + var uneCarte = new Carte(i + 12 * (1 + k + j), AllFigure); deckPartie.push(uneCarte); document.getElementById("containcards").appendChild(uneCarte.link); }