fix bug SleepyCat

This commit is contained in:
adeliptr 2025-05-11 14:22:34 +09:00
parent 839b9fbb4c
commit 9826e8f115
3 changed files with 2 additions and 1 deletions

BIN
.DS_Store vendored

Binary file not shown.

BIN
src/.DS_Store vendored

Binary file not shown.

View File

@ -250,7 +250,8 @@ export class SleepyCat extends Cat {
if (this.wakeStart != undefined) {
if (!this.hasAttacked && this.targetMouse && millis() - this.wakeStart > 900) {
this.targetMouse.attacked(150);
const explode = { point: 150 };
this.targetMouse.attacked(explode);
if (this.targetMouse && this.targetMouse.HP > 0) this.targetMouse.sprite.changeAni('walk');
this.hasAttacked = true;
}