mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-20 16:42:45 +02:00
Update turn-start-phase.ts
This commit is contained in:
parent
81d3fb1eea
commit
7cf396f296
@ -209,7 +209,7 @@ export class TurnStartPhase extends FieldPhase {
|
||||
|
||||
// Use the fastest first pokemon we find with Run Away, or else the faster of the 2 player pokemon.
|
||||
// This intentionally does not check for Trick Room.
|
||||
// TODO: This phase should take a pokemon at all
|
||||
// TODO: This phase should not take a pokemon at all
|
||||
const sortedPkmn = playerActivePokemon.sort((p1, p2) => p1.getStat(Stat.SPD) - p2.getStat(Stat.SPD));
|
||||
const runningPokemon = sortedPkmn.find(p => p.hasAbility(AbilityId.RUN_AWAY)) ?? sortedPkmn[0];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user