mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-17 13:52: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))
|
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);
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user