Skip to content

Commit

Permalink
more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
DreadKnight committed Oct 27, 2024
1 parent 74b7264 commit 80484fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ui/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -761,15 +761,15 @@ export class UI {

// 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 (!creatureHaveAtleastOneAvailableAbility) {
game.activeCreature.queryMove();
this.selectAbility(-1);
return -1;
Expand Down

0 comments on commit 80484fa

Please sign in to comment.