mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-24 06:17:40 -04:00
Fix showing incorrect max PP on summary screen
This commit is contained in:
parent
9a00090617
commit
5ab628039d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue