Skip to content

Commit

Permalink
lint fix 3
Browse files Browse the repository at this point in the history
  • Loading branch information
J0es1ick committed Jan 5, 2025
1 parent d96b9a7 commit 9e4d779
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rpgsaga/saga/src/game/abstract/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,17 @@ export abstract class Player {
this._strength += buff;
}

/* eslint-disable no-unused-vars */
public takeDamage(damage: number, attacker: Player, skill: ISkill | undefined = undefined): void {
let opponentSkill: ISkill;
if (skill !== undefined) {
opponentSkill = skill;

Check failure on line 156 in rpgsaga/saga/src/game/abstract/Player.ts

View workflow job for this annotation

GitHub Actions / saga-ci

'opponentSkill' is assigned a value but never used
}
this._health -= damage;
if (this._health <= 0) {
this._health = 0;
this._isAlive = false;
}
}
/* eslint-enable no-unused-vars */

public heal(amount: number) {
if (this._health + amount > this.initialHealth) {
Expand Down

0 comments on commit 9e4d779

Please sign in to comment.