mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-21 15:52:18 +02:00
Address Rotom nit
This commit is contained in:
parent
ce677f5169
commit
0303a1631d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user