Merge pull request #17 from Greenphx9/saveblock-rematch-fix

Disable Rematches when FREE_MATCH_CALL is on.
This commit is contained in:
ghoulslash 2022-08-08 18:08:34 -04:00 committed by GitHub
commit 436b714719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1132,6 +1132,7 @@ const u8 *BattleSetup_ConfigureTrainerBattle(const u8 *data)
TrainerBattleLoadArgs(sContinueScriptDoubleBattleParams, data);
SetMapVarsToTrainer();
return EventScript_TryDoDoubleTrainerBattle;
#ifndef FREE_MATCH_CALL
case TRAINER_BATTLE_REMATCH_DOUBLE:
TrainerBattleLoadArgs(sDoubleBattleParams, data);
SetMapVarsToTrainer();
@ -1142,6 +1143,7 @@ const u8 *BattleSetup_ConfigureTrainerBattle(const u8 *data)
SetMapVarsToTrainer();
gTrainerBattleOpponent_A = GetRematchTrainerId(gTrainerBattleOpponent_A);
return EventScript_TryDoRematchBattle;
#endif
case TRAINER_BATTLE_PYRAMID:
if (gApproachingTrainerId == 0)
{