mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-16 17:27:41 +00:00
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);
|
ppText.setOrigin(0, 1);
|
||||||
|
|
||||||
if (move) {
|
if (move) {
|
||||||
const maxPP = move.getMove().pp + move.ppUp;
|
const maxPP = move.getMovePp();
|
||||||
const pp = maxPP - move.ppUsed;
|
const pp = maxPP - move.ppUsed;
|
||||||
ppText.setText(`${Utils.padInt(pp, 2, ' ')}/${Utils.padInt(maxPP, 2, ' ')}`);
|
ppText.setText(`${Utils.padInt(pp, 2, ' ')}/${Utils.padInt(maxPP, 2, ' ')}`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user