mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-16 21:32:18 +02:00
Fixed spacing and semicolon
This commit is contained in:
parent
99c5654db5
commit
2382579ffb
@ -2161,7 +2161,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
if (this.getTag(BattlerTagType.NIGHTMARE))
|
||||
this.lapseTag(BattlerTagType.NIGHTMARE);
|
||||
}
|
||||
if(confusion) {
|
||||
if (confusion) {
|
||||
if (this.getTag(BattlerTagType.CONFUSED))
|
||||
this.lapseTag(BattlerTagType.CONFUSED);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user