From 0303a1631d8ae8d06b7a0e0e7a709c389561f56f Mon Sep 17 00:00:00 2001 From: AJ Fontaine Date: Wed, 19 Feb 2025 14:17:29 -0500 Subject: [PATCH] Address Rotom nit --- src/battle-scene.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/battle-scene.ts b/src/battle-scene.ts index 283bac87766..8f172425659 100644 --- a/src/battle-scene.ts +++ b/src/battle-scene.ts @@ -1523,7 +1523,8 @@ export default class BattleScene extends SceneBase { } } - if (species.speciesId === Species.ROTOM // Set Rotom form for Trainers to match specialty type + if ( // For Rotom in Trainer battles, set form to match specialty type if applicable + species.speciesId === Species.ROTOM && this.currentBattle.battleType === BattleType.TRAINER && !isNullOrUndefined(this.currentBattle.trainer) && [ Type.FLYING, Type.GHOST, Type.FIRE, Type.GRASS, Type.WATER, Type.ICE ].includes(this.currentBattle.trainer.config.specialtyType)) { switch (this.currentBattle.trainer.config.specialtyType) {