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

@ -2161,7 +2161,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
if (this.getTag(BattlerTagType.NIGHTMARE)) if (this.getTag(BattlerTagType.NIGHTMARE))
this.lapseTag(BattlerTagType.NIGHTMARE); this.lapseTag(BattlerTagType.NIGHTMARE);
} }
if(confusion) { if (confusion) {
if (this.getTag(BattlerTagType.CONFUSED)) if (this.getTag(BattlerTagType.CONFUSED))
this.lapseTag(BattlerTagType.CONFUSED); this.lapseTag(BattlerTagType.CONFUSED);
} }

View File

@ -1035,7 +1035,7 @@ export class PokemonHpRestoreModifier extends ConsumablePokemonModifier {
if (!this.fainted) if (!this.fainted)
restorePoints = Math.floor(restorePoints * (args[1] as number)); restorePoints = Math.floor(restorePoints * (args[1] as number));
if (this.fainted || this.healStatus) 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()); 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; return true;
} }