From e17aee5d480cd38cdbdd735deef4dd107226a5fa Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Fri, 19 Apr 2024 12:24:52 -0400 Subject: [PATCH] Fix default starter hidden ability for new accounts --- src/system/game-data.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/system/game-data.ts b/src/system/game-data.ts index cfee29a780a..e1ed38d8971 100644 --- a/src/system/game-data.ts +++ b/src/system/game-data.ts @@ -342,6 +342,11 @@ export class GameData { } else { if ([ '1.0.0', '1.0.1' ].includes(systemData.gameVersion)) this.migrateStarterAbilities(systemData); + // Migrate ability starter data if empty for caught species + Object.keys(systemData.starterData).forEach(sd => { + if (systemData.dexData[sd].caughtAttr && !systemData.starterData[sd].abilityAttr) + systemData.starterData[sd].abilityAttr = 1; + }); this.starterData = systemData.starterData; }