mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-31 13:17:21 +00:00
Fix PP Up calculation not working properly
This commit is contained in:
parent
96f0d9158b
commit
25972b68ea
@ -122,7 +122,7 @@ export default class FightUiHandler extends UiHandler {
|
|||||||
const pokemonMove = moveset[cursor];
|
const pokemonMove = moveset[cursor];
|
||||||
this.typeIcon.setTexture('types', Type[pokemonMove.getMove().type].toLowerCase());
|
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;
|
const pp = maxPP - pokemonMove.ppUsed;
|
||||||
|
|
||||||
this.ppText.setText(`${Utils.padInt(pp, 2, ' ')}/${Utils.padInt(maxPP, 2, ' ')}`);
|
this.ppText.setText(`${Utils.padInt(pp, 2, ' ')}/${Utils.padInt(maxPP, 2, ' ')}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user