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

View File

@ -525,16 +525,24 @@
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 (baseCd > 0) { if (!state.wasReduced) {
let reduced = Math.floor(baseCd / 2); if (baseCd > 0) {
let reduced = Math.floor(baseCd / 2);
if (reduced < 1) reduced = 1;
state.currentCd = reduced;
} else {
state.currentCd = 0;
}
// mindestens 1 wenn Karte CD hatte state.wasReduced = true;
if (reduced < 1) reduced = 1; }
state.currentCd = reduced; // Danach normal runterzählen
} else { else {
state.currentCd = 0; if (state.currentCd > 0) {
state.currentCd--;
}
} }
renderHandSlot(id); renderHandSlot(id);