Move Rotom form code to separate PR

This commit is contained in:
AJ Fontaine 2025-02-24 10:24:05 -05:00
parent 999bd87b9b
commit 72d169a219

View File

@ -1953,26 +1953,6 @@ export default class BattleScene extends SceneBase {
}
}
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) {
case Type.FLYING:
return 4; // Fan Rotom
case Type.GHOST:
return 0; // Light bulb Rotom
case Type.FIRE:
return 1; // Heat Rotom
case Type.GRASS:
return 5; // Mow Rotom
case Type.WATER:
return 2; // Wash Rotom
case Type.ICE:
return 3; // Frost Rotom
}
}
if (ignoreArena) {
switch (species.speciesId) {
case Species.BURMY: