There was an error while loading. Please reload this page.
This is an adaption of the same turorial for pokered by ZetaPhoenix.
In engine/battle/core.asm, go to TryToRunAwayFromBattle:
engine/battle/core.asm
TryToRunAwayFromBattle:
.cant_run_from_trainer +IF DEF(_DEBUG) + call FaintEnemyPokemon + call WinTrainerBattle + call WaitSFX + call LoadTilemapToTempTilemap + scf + ret +ENDC ld hl, BattleText_TheresNoEscapeFromTrainerBattle
Adding the code above makes RUN in trainer battles do the following in debug mode: