Update PlayerController.ts
This commit is contained in:
parent
cc34842dee
commit
a2aecb2584
|
@ -72,6 +72,7 @@ export default class PlayerController extends StateMachineAI implements BattlerA
|
||||||
|
|
||||||
// TODO -
|
// TODO -
|
||||||
damage(damage: number): void {
|
damage(damage: number): void {
|
||||||
|
(<AnimatedSprite>this.owner).animation.play("HURT", false);
|
||||||
this.CURRENT_HP -= damage;
|
this.CURRENT_HP -= damage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user