mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 00:36:25 +00:00
Fix auto play issue with level up stats prompt
This commit is contained in:
parent
5ab3b2dab6
commit
8f990fbc21
@ -98,8 +98,8 @@ export function initAutoPlay() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const originalMessageUiHandlerPromptLevelUpStats = messageUiHandler.promptLevelUpStats;
|
const originalMessageUiHandlerPromptLevelUpStats = messageUiHandler.promptLevelUpStats;
|
||||||
messageUiHandler.promptLevelUpStats = function (prevStats: integer[], showTotals: boolean, callback?: Function) {
|
messageUiHandler.promptLevelUpStats = function (partyMemberIndex: integer, prevStats: integer[], showTotals: boolean, callback?: Function) {
|
||||||
originalMessageUiHandlerPromptLevelUpStats.apply(this, [ prevStats, showTotals, callback ]);
|
originalMessageUiHandlerPromptLevelUpStats.apply(this, [ partyMemberIndex, prevStats, showTotals, callback ]);
|
||||||
if (thisArg.auto)
|
if (thisArg.auto)
|
||||||
thisArg.time.delayedCall(20, () => this.processInput(Button.ACTION));
|
thisArg.time.delayedCall(20, () => this.processInput(Button.ACTION));
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user