From 5ab628039d88f205de6f3c8f154e3281eb46d161 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Mon, 29 Jan 2024 20:57:59 -0500 Subject: [PATCH] Fix showing incorrect max PP on summary screen --- src/ui/summary-ui-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/summary-ui-handler.ts b/src/ui/summary-ui-handler.ts index a3ed8d510..58f4e243a 100644 --- a/src/ui/summary-ui-handler.ts +++ b/src/ui/summary-ui-handler.ts @@ -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, ' ')}`); }