diff --git a/src/ui/interface.js b/src/ui/interface.js index d300696ce..0ce089835 100644 --- a/src/ui/interface.js +++ b/src/ui/interface.js @@ -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;