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); }