Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
DreadKnight authored Oct 27, 2024
1 parent ad34bb7 commit 3c77af9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ui/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -759,17 +759,17 @@ export class UI {
return i;
}

//Check if creature has at least one more ability to choose from
// Check if creature has at least one more ability to choose from
let creatureHaveAtleastOneAvailableAbility = false;
for(let y = i; y < 4; y++){
if(creature.abilities[y].require()){
for(let y = i; y < 4; y++) {
if(creature.abilities[y].require()) {
creatureHaveAtleastOneAvailableAbility = true;
break;
}
}

//If creature has no more available abilities to choose from, return -1
if(!creatureHaveAtleastOneAvailableAbility){
// If creature has no more available abilities to choose from, return -1
if(!creatureHaveAtleastOneAvailableAbility) {
game.activeCreature.queryMove();
this.selectAbility(-1);
return -1;
Expand Down

0 comments on commit 3c77af9

Please sign in to comment.