Fixed spacing and semicolon

This commit is contained in:
Ethan 2024-05-19 13:16:03 -04:00
parent 99c5654db5
commit 2382579ffb
2 changed files with 2 additions and 2 deletions

View File

@ -1035,7 +1035,7 @@ export class PokemonHpRestoreModifier extends ConsumablePokemonModifier {
if (!this.fainted)
restorePoints = Math.floor(restorePoints * (args[1] as number));
if (this.fainted || this.healStatus)
pokemon.resetStatus(true, true)
pokemon.resetStatus(true, true);
pokemon.hp = Math.min(pokemon.hp + Math.max(Math.ceil(Math.max(Math.floor((this.restorePercent * 0.01) * pokemon.getMaxHp()), restorePoints)), 1), pokemon.getMaxHp());
return true;
}