mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
Cleaned up problem conditional.
This commit is contained in:
parent
6feb63484c
commit
d3449f62ee
@ -120,10 +120,12 @@ export class MovePhase extends BattlePhase {
|
|||||||
console.log(Moves[this.move.moveId]);
|
console.log(Moves[this.move.moveId]);
|
||||||
|
|
||||||
// Check if move is unusable (e.g. because it's out of PP due to a mid-turn Spite).
|
// Check if move is unusable (e.g. because it's out of PP due to a mid-turn Spite).
|
||||||
if (!this.canMove(true) && (this.pokemon.isActive(true) || this.move.ppUsed >= this.move.getMovePp())) {
|
if (!this.canMove(true)) {
|
||||||
this.fail();
|
if (this.pokemon.isActive(true)) {
|
||||||
this.showMoveText();
|
this.fail();
|
||||||
this.showFailedText();
|
this.showMoveText();
|
||||||
|
this.showFailedText();
|
||||||
|
}
|
||||||
return this.end();
|
return this.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user