From 8f990fbc2169a86b9e9e013032f1a4af35d41c46 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Wed, 19 Apr 2023 00:37:41 -0400 Subject: [PATCH] Fix auto play issue with level up stats prompt --- src/auto-play.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auto-play.ts b/src/auto-play.ts index ce4edc1a7..9ce777cc0 100644 --- a/src/auto-play.ts +++ b/src/auto-play.ts @@ -98,8 +98,8 @@ export function initAutoPlay() { }; const originalMessageUiHandlerPromptLevelUpStats = messageUiHandler.promptLevelUpStats; - messageUiHandler.promptLevelUpStats = function (prevStats: integer[], showTotals: boolean, callback?: Function) { - originalMessageUiHandlerPromptLevelUpStats.apply(this, [ prevStats, showTotals, callback ]); + messageUiHandler.promptLevelUpStats = function (partyMemberIndex: integer, prevStats: integer[], showTotals: boolean, callback?: Function) { + originalMessageUiHandlerPromptLevelUpStats.apply(this, [ partyMemberIndex, prevStats, showTotals, callback ]); if (thisArg.auto) thisArg.time.delayedCall(20, () => this.processInput(Button.ACTION)); };