Skip to content

Commit e6b290d

Browse files
authored
Hotfix 1.11.11 to main
2 parents d99792b + 3b7c44e commit e6b290d

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

locales

Submodule locales updated 64 files

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pokemon-rogue-battle",
33
"private": true,
4-
"version": "1.11.10",
4+
"version": "1.11.11",
55
"type": "module",
66
"scripts": {
77
"start:prod": "vite --mode production",

src/battle-scene.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,6 +1266,10 @@ export class BattleScene extends SceneBase {
12661266
double?: boolean,
12671267
mysteryEncounterType?: MysteryEncounterType,
12681268
): Battle {
1269+
// failsafe for corrupt saves (such as due to enum shifting)
1270+
if (trainerData?.variant === TrainerVariant.DOUBLE && !trainerConfigs[trainerData.trainerType].hasDouble) {
1271+
trainerData = undefined;
1272+
}
12691273
const _startingWave = Overrides.STARTING_WAVE_OVERRIDE || startingWave;
12701274
const newWaveIndex = waveIndex || (this.currentBattle?.waveIndex || _startingWave - 1) + 1;
12711275
let newDouble: boolean | undefined;

0 commit comments

Comments
 (0)