This commit is contained in:
cay 2026-04-09 18:43:56 +01:00
parent 02b9e27063
commit 0afbd01d55
2 changed files with 5 additions and 8 deletions

View File

@ -459,7 +459,7 @@ async function handle1v1Click(card) {
hideQueueStatus();
showMatchFoundOverlay(me.name, data.opponent.name, () => {
openArenaPopup(
`/arena/1v1?match=${encodeURIComponent(data.matchId)}&slot=${encodeURIComponent(data.mySlot)}`,
`/arena/1v1?match=${encodeURIComponent(data.matchId)}&slot=${encodeURIComponent(data.mySlot)}&deck=${encodeURIComponent(selectedDeckId||'')}`,
data.opponent.name, data.matchId
);
});

View File

@ -196,11 +196,7 @@
for (let i = 1; i <= 11; i++) {
const s = document.createElement("div");
s.className = "card-slot";
if (id === "row1" && i === 1) {
s.innerHTML = `<img src="/images/cards/Silberklinge.png" style="width:100%;height:100%;object-fit:cover;border-radius:7px;">`;
} else {
s.innerHTML = '<span class="slot-icon">✦</span><span class="slot-num">' + i + "</span>";
}
s.innerHTML = '<span class="slot-icon">✦</span><span class="slot-num">' + i + "</span>";
row.appendChild(s);
}
});
@ -244,8 +240,9 @@
// ── Deck via API laden und Karten anzeigen ────────────
(async () => {
try {
// Deck-ID aus sessionStorage (wird von arena.js gesetzt)
const deckId = sessionStorage.getItem("selectedDeckId");
// Deck-ID aus URL-Parameter (von arena.js mitgegeben)
const urlP = new URLSearchParams(window.location.search);
const deckId = urlP.get("deck") || sessionStorage.getItem("selectedDeckId");
if (!deckId) return;
const [deckRes, cardsRes] = await Promise.all([