mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-21 15:52:18 +02:00
Fix mycelium might softlock
This commit is contained in:
parent
2b535622ac
commit
1a358df11d
@ -5054,7 +5054,7 @@ export class PreventBypassSpeedChanceAbAttr extends AbAttr {
|
|||||||
const turnCommand = globalScene.currentBattle.turnCommands[pokemon.getBattlerIndex()];
|
const turnCommand = globalScene.currentBattle.turnCommands[pokemon.getBattlerIndex()];
|
||||||
const isCommandFight = turnCommand?.command === Command.FIGHT;
|
const isCommandFight = turnCommand?.command === Command.FIGHT;
|
||||||
const move = turnCommand?.move?.move ? allMoves[turnCommand.move.move] : null;
|
const move = turnCommand?.move?.move ? allMoves[turnCommand.move.move] : null;
|
||||||
if (this.condition(pokemon, move!) && isCommandFight) {
|
if (isCommandFight && this.condition(pokemon, move!)) {
|
||||||
bypassSpeed.value = false;
|
bypassSpeed.value = false;
|
||||||
canCheckHeldItems.value = false;
|
canCheckHeldItems.value = false;
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user