mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
remove unecessary case
This commit is contained in:
parent
16e1f63fe0
commit
77cdad48df
@ -2161,9 +2161,7 @@ export class TurnStartPhase extends FieldPhase {
|
||||
if (this.scene.currentBattle.double) {
|
||||
const playerActivePokemon = field.filter(pokemon => pokemon.isPlayer() && pokemon.isActive());
|
||||
// if only one pokemon is alive, use that one
|
||||
if (playerActivePokemon.length < 2) {
|
||||
runningPokemon = playerActivePokemon[0];
|
||||
} else {
|
||||
if (playerActivePokemon.length > 1) {
|
||||
// find which active pokemon has faster speed
|
||||
const fasterPokemon = playerActivePokemon[0].getStat(Stat.SPD) > playerActivePokemon[1].getStat(Stat.SPD) ? playerActivePokemon[0] : playerActivePokemon[1];
|
||||
// check if either active pokemon has the ability "Run Away"
|
||||
|
Loading…
Reference in New Issue
Block a user