From 25972b68eaefa9bb1b3826dc0d213513021cd1ed Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sat, 13 Jan 2024 10:56:20 -0500 Subject: [PATCH] Fix PP Up calculation not working properly --- src/ui/fight-ui-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/fight-ui-handler.ts b/src/ui/fight-ui-handler.ts index 356c87e0f..a346cbf10 100644 --- a/src/ui/fight-ui-handler.ts +++ b/src/ui/fight-ui-handler.ts @@ -122,7 +122,7 @@ export default class FightUiHandler extends UiHandler { const pokemonMove = moveset[cursor]; this.typeIcon.setTexture('types', Type[pokemonMove.getMove().type].toLowerCase()); - const maxPP = pokemonMove.getMove().pp + pokemonMove.ppUp; + const maxPP = pokemonMove.getMovePp(); const pp = maxPP - pokemonMove.ppUsed; this.ppText.setText(`${Utils.padInt(pp, 2, ' ')}/${Utils.padInt(maxPP, 2, ' ')}`);