This commit is contained in:
cay 2026-04-13 11:43:41 +01:00
parent 26bdd191b6
commit d03b58b40f

View File

@ -525,18 +525,26 @@
const baseCd = Number(state.card.cooldown || 0); const baseCd = Number(state.card.cooldown || 0);
// Karte wurde NICHT gespielt und ist noch in der Hand // Erste Runde ungespielt -> halbieren
if (!state.wasReduced) {
if (baseCd > 0) { if (baseCd > 0) {
let reduced = Math.floor(baseCd / 2); let reduced = Math.floor(baseCd / 2);
// mindestens 1 wenn Karte CD hatte
if (reduced < 1) reduced = 1; if (reduced < 1) reduced = 1;
state.currentCd = reduced; state.currentCd = reduced;
} else { } else {
state.currentCd = 0; state.currentCd = 0;
} }
state.wasReduced = true;
}
// Danach normal runterzählen
else {
if (state.currentCd > 0) {
state.currentCd--;
}
}
renderHandSlot(id); renderHandSlot(id);
}); });
} }