tdzktrdzj
This commit is contained in:
parent
d58e27cbe6
commit
d1cc1ab733
@ -529,11 +529,12 @@
|
|||||||
|
|
||||||
const baseCd = Number(state.card.cooldown || 0);
|
const baseCd = Number(state.card.cooldown || 0);
|
||||||
|
|
||||||
// Erste Runde ungespielt -> halbieren
|
// Karte war diese Runde spielbar, wurde aber NICHT gespielt
|
||||||
if (!state.wasReduced) {
|
if (state.currentCd <= 0 && !state.wasReduced) {
|
||||||
if (baseCd > 0) {
|
if (baseCd > 0) {
|
||||||
let reduced = Math.floor(baseCd / 2);
|
let reduced = Math.floor(baseCd / 2);
|
||||||
if (reduced < 1) reduced = 1;
|
if (reduced < 1) reduced = 1;
|
||||||
|
|
||||||
state.currentCd = reduced;
|
state.currentCd = reduced;
|
||||||
} else {
|
} else {
|
||||||
state.currentCd = 0;
|
state.currentCd = 0;
|
||||||
@ -542,7 +543,7 @@
|
|||||||
state.wasReduced = true;
|
state.wasReduced = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Danach normal runterzählen
|
// Normales Cooldown runterzählen
|
||||||
else {
|
else {
|
||||||
if (state.currentCd > 0) {
|
if (state.currentCd > 0) {
|
||||||
state.currentCd--;
|
state.currentCd--;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user