Fix PP Up calculation not working properly
This commit is contained in:
1 parent
96f0d9158b
commit
25972b68ea
1 file changed
+1
-1
@@ -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, ' ')}`);
|
||||
|
||||
Reference in new issue
Block a user