Fix PP Up calculation not working properly

pull/14/head
Flashfyre 2024-01-13 10:56:20 -05:00
parent 96f0d9158b
commit 25972b68ea
1 changed files with 1 additions and 1 deletions

View File

@ -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, ' ')}`);