mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 15:22:19 +02:00
Move Rotom form code to separate PR
This commit is contained in:
parent
999bd87b9b
commit
72d169a219
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user