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);
// Karte wurde NICHT gespielt und ist noch in der Hand
if (baseCd > 0) {
let reduced = Math.floor(baseCd / 2);
// Erste Runde ungespielt -> halbieren
if (!state.wasReduced) {
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
if (reduced < 1) reduced = 1;
state.wasReduced = true;
}
state.currentCd = reduced;
} else {
state.currentCd = 0;
// Danach normal runterzählen
else {
if (state.currentCd > 0) {
state.currentCd--;
}
}
renderHandSlot(id);