This commit is contained in:
cay 2026-04-13 11:40:52 +01:00
parent 6f7ba43193
commit 26bdd191b6

View File

@ -522,7 +522,21 @@
handCardIds.forEach((id) => {
const state = handSlotState[id];
if (!state) return;
if (state.currentCd > 0) state.currentCd--;
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);
// mindestens 1 wenn Karte CD hatte
if (reduced < 1) reduced = 1;
state.currentCd = reduced;
} else {
state.currentCd = 0;
}
renderHandSlot(id);
});
}