mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-10 18:32:16 +02:00
Fix RUN command causing freeze
This commit is contained in:
parent
7847d1c445
commit
2b3a365529
@ -2515,7 +2515,13 @@ export class MovePhase extends BattlePhase {
|
||||
|
||||
console.log(Moves[this.move.moveId]);
|
||||
|
||||
if (!this.pokemon.isActive(true)) {
|
||||
// Battle has ended, for example when RUN has been selected
|
||||
return this.end();
|
||||
}
|
||||
|
||||
if (!this.canMove()) {
|
||||
// The selected move has been made unusable
|
||||
this.fail();
|
||||
this.showMoveText();
|
||||
this.showFailedText();
|
||||
|
Loading…
Reference in New Issue
Block a user