Fix showing incorrect max PP on summary screen
This commit is contained in:
parent
9a00090617
commit
5ab628039d
|
@ -676,7 +676,7 @@ export default class SummaryUiHandler extends UiHandler {
|
|||
ppText.setOrigin(0, 1);
|
||||
|
||||
if (move) {
|
||||
const maxPP = move.getMove().pp + move.ppUp;
|
||||
const maxPP = move.getMovePp();
|
||||
const pp = maxPP - move.ppUsed;
|
||||
ppText.setText(`${Utils.padInt(pp, 2, ' ')}/${Utils.padInt(maxPP, 2, ' ')}`);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue