mirror of
https://github.com/bryanthaboi/gen1recomp
synced 2026-09-26 21:35:42 -04:00
65badd1a4b
Two contexts call LearnMove.begin with different pushMsg semantics: - Battle (Ui.push): single-arg, ignores callback -> pump() must poll Ui.dialogPending() to wait for the player to dismiss the message - Party menu / rare candy (PartyMenu.showMessage): honours the callback, calling it when the player presses A -> finish() must fire inline Fix: set _pending='done' for the pump() path (battle) AND restore the say() callback for the direct path (party menu). A guard on _pending prevents double-finish. pump() now checks Ui.dialogPending() before acting on 'done' so the 'X learned Y!' message stays visible until the player dismisses it in both contexts.