Fix egg test

This commit is contained in:
NightKev 2024-11-13 17:37:20 -08:00
parent b52fda3632
commit 95324a2273

View File

@ -1397,17 +1397,17 @@ export default class BattleScene extends SceneBase {
case Species.PALDEA_TAUROS:
return Utils.randSeedInt(species.forms.length);
case Species.PIKACHU:
if (this.currentBattle.battleType === BattleType.TRAINER && this.currentBattle.waveIndex < 30) {
if (this.currentBattle?.battleType === BattleType.TRAINER && this.currentBattle?.waveIndex < 30) {
return 0;
}
return Utils.randSeedInt(8);
case Species.EEVEE:
if (this.currentBattle.battleType === BattleType.TRAINER && this.currentBattle.waveIndex < 30) {
if (this.currentBattle?.battleType === BattleType.TRAINER && this.currentBattle?.waveIndex < 30) {
return 0; // No Partner Eevee for Wave 12 Preschoolers
}
return Utils.randSeedInt(2);
case Species.GRENINJA:
if (this.currentBattle.battleType === BattleType.TRAINER) {
if (this.currentBattle?.battleType === BattleType.TRAINER) {
return 0; // Don't give trainers Battle Bond Greninja
}
return Utils.randSeedInt(2);