tdzktrdzj

This commit is contained in:
cay 2026-04-13 11:47:15 +01:00
parent d58e27cbe6
commit d1cc1ab733

View File

@ -529,11 +529,12 @@
const baseCd = Number(state.card.cooldown || 0);
// Erste Runde ungespielt -> halbieren
if (!state.wasReduced) {
// Karte war diese Runde spielbar, wurde aber NICHT gespielt
if (state.currentCd <= 0 && !state.wasReduced) {
if (baseCd > 0) {
let reduced = Math.floor(baseCd / 2);
if (reduced < 1) reduced = 1;
state.currentCd = reduced;
} else {
state.currentCd = 0;
@ -542,7 +543,7 @@
state.wasReduced = true;
}
// Danach normal runterzählen
// Normales Cooldown runterzählen
else {
if (state.currentCd > 0) {
state.currentCd--;