8000 Linter Fix · rsnazario/capstone-js-phaser-rpg@d06e6d0 · GitHub
[go: up one dir, main page]

Skip to content

Commit d06e6d0

Browse files
committed
Linter Fix
1 parent 9f8d254 commit d06e6d0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/js/scenes/battle.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ export default class BattleScene extends Phaser.Scene {
4040
}
4141

4242
startBattle() {
43-
4443
window.bgMusic = false;
4544
window.worldMusic = false;
4645
window.battleMusic = true;
@@ -149,8 +148,7 @@ export default class BattleScene extends Phaser.Scene {
149148
}
150149
this.warriorHP = this.heroes[0].hp;
151150
this.mageHP = this.heroes[1].hp;
152-
153-
} else if (this.heroes.length === 1 && this.heroes[0].hp > 0) { //heroes.length == 1
151+
} else if (this.heroes.length === 1 && this.heroes[0].hp > 0) { // heroes.length == 1
154152
if (this.heroes[0].type === 'Warrior') {
155153
this.warriorHP = this.heroes[0].hp + 12;
156154
} else if (this.heroes[0].type === 'Mage') {

0 commit comments

Comments
 (0)
0