mjkrt
This commit is contained in:
parent
6f7ba43193
commit
26bdd191b6
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user