Apply unsafe fixes

This commit is contained in:
NightKev 2025-04-26 20:35:09 -07:00
parent 5954a54782
commit df51acef49
2 changed files with 8 additions and 6 deletions

View File

@ -258,13 +258,16 @@ export function getGymLeaderPartyTemplate() {
case GameModes.CLASSIC: case GameModes.CLASSIC:
if (currentBattle?.waveIndex <= 20) { if (currentBattle?.waveIndex <= 20) {
return trainerPartyTemplates.GYM_LEADER_1; // 1 avg 1 strong return trainerPartyTemplates.GYM_LEADER_1; // 1 avg 1 strong
} else if (currentBattle?.waveIndex <= 30) { }
if (currentBattle?.waveIndex <= 30) {
return trainerPartyTemplates.GYM_LEADER_2; // 1 avg 1 strong 1 stronger return trainerPartyTemplates.GYM_LEADER_2; // 1 avg 1 strong 1 stronger
} else if (currentBattle?.waveIndex <= 60) { }
// 50 and 60 // 50 and 60
if (currentBattle?.waveIndex <= 60) {
return trainerPartyTemplates.GYM_LEADER_3; // 2 avg 1 strong 1 stronger return trainerPartyTemplates.GYM_LEADER_3; // 2 avg 1 strong 1 stronger
} else if (currentBattle?.waveIndex <= 90) { }
// 80 and 90 // 80 and 90
if (currentBattle?.waveIndex <= 90) {
return trainerPartyTemplates.GYM_LEADER_4; // 3 avg 1 strong 1 stronger return trainerPartyTemplates.GYM_LEADER_4; // 3 avg 1 strong 1 stronger
} }
// 110+ // 110+

View File

@ -1775,7 +1775,6 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
if (doubleShiny) { if (doubleShiny) {
return this.summonData.illusion?.basePokemon?.variant ?? this.variant; return this.summonData.illusion?.basePokemon?.variant ?? this.variant;
} }
return this.getVariant(); return this.getVariant();
} }