mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-16 23:05:23 +01:00
Only run speed bypass code for fight commands
This commit is contained in:
parent
9a4381c776
commit
6bda024b7e
@ -69,6 +69,10 @@ export class TurnStartPhase extends FieldPhase {
|
||||
|
||||
const phaseManager = globalScene.phaseManager;
|
||||
for (const pokemon of inSpeedOrder(ArenaTagSide.BOTH)) {
|
||||
if (globalScene.currentBattle.turnCommands[pokemon.getBattlerIndex()]?.command !== Command.FIGHT) {
|
||||
continue;
|
||||
}
|
||||
|
||||
applyAbAttrs("BypassSpeedChanceAbAttr", { pokemon });
|
||||
globalScene.applyModifiers(BypassSpeedChanceModifier, pokemon.isPlayer(), pokemon);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user