fix wait notification when stack used
This commit is contained in:
parent
0dd3d6352a
commit
c617d8f92b
|
@ -153,8 +153,8 @@ export async function drawByOffsets(
|
||||||
wait += coolDown;
|
wait += coolDown;
|
||||||
if (wait > canvas.cds) {
|
if (wait > canvas.cds) {
|
||||||
// cooldown stack used
|
// cooldown stack used
|
||||||
coolDown = canvas.cds - wait;
|
|
||||||
wait -= coolDown;
|
wait -= coolDown;
|
||||||
|
coolDown = canvas.cds - wait - coolDown;
|
||||||
throw new Error(9);
|
throw new Error(9);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user