mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-17 13:52:18 +02:00
Removed hiding cancelled move messages
This commit is contained in:
parent
abf46f5b96
commit
15b74ab23a
@ -2332,24 +2332,22 @@ export class MovePhase extends BattlePhase {
|
|||||||
|
|
||||||
this.scene.triggerPokemonFormChange(this.pokemon, SpeciesFormChangePreMoveTrigger);
|
this.scene.triggerPokemonFormChange(this.pokemon, SpeciesFormChangePreMoveTrigger);
|
||||||
|
|
||||||
|
if (this.move.moveId)
|
||||||
|
this.showMoveText();
|
||||||
|
|
||||||
// This should only happen when there are no valid targets left on the field
|
// This should only happen when there are no valid targets left on the field
|
||||||
if ((moveQueue.length && moveQueue[0].move === Moves.NONE) || !targets.length) {
|
if ((moveQueue.length && moveQueue[0].move === Moves.NONE) || !targets.length) {
|
||||||
|
this.showFailedText();
|
||||||
this.cancel();
|
this.cancel();
|
||||||
|
|
||||||
// Record a failed move so Abilities like Truant don't trigger next turn and soft-lock
|
// Record a failed move so Abilities like Truant don't trigger next turn and soft-lock
|
||||||
this.pokemon.pushMoveHistory({ move: Moves.NONE, result: MoveResult.FAIL });
|
this.pokemon.pushMoveHistory({ move: Moves.NONE, result: MoveResult.FAIL });
|
||||||
|
|
||||||
this.pokemon.lapseTags(BattlerTagLapseType.MOVE_EFFECT); // Remove any tags from moves like Fly/Dive/etc.
|
this.pokemon.lapseTags(BattlerTagLapseType.MOVE_EFFECT); // Remove any tags from moves like Fly/Dive/etc.
|
||||||
|
|
||||||
moveQueue.shift();
|
moveQueue.shift();
|
||||||
}
|
|
||||||
|
|
||||||
// Display move text
|
|
||||||
if (this.move.moveId && (!this.cancelled || this.ignorePp)) {
|
|
||||||
this.showMoveText();
|
|
||||||
if (this.cancelled)
|
|
||||||
this.showFailedText();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.cancelled)
|
|
||||||
return this.end();
|
return this.end();
|
||||||
|
}
|
||||||
|
|
||||||
if (!moveQueue.length || !moveQueue.shift().ignorePP) // using .shift here clears out two turn moves once they've been used
|
if (!moveQueue.length || !moveQueue.shift().ignorePP) // using .shift here clears out two turn moves once they've been used
|
||||||
this.move.usePp(ppUsed);
|
this.move.usePp(ppUsed);
|
||||||
@ -2357,7 +2355,6 @@ export class MovePhase extends BattlePhase {
|
|||||||
if (!allMoves[this.move.moveId].getAttrs(CopyMoveAttr).length)
|
if (!allMoves[this.move.moveId].getAttrs(CopyMoveAttr).length)
|
||||||
this.scene.currentBattle.lastMove = this.move.moveId;
|
this.scene.currentBattle.lastMove = this.move.moveId;
|
||||||
|
|
||||||
|
|
||||||
// Assume conditions affecting targets only apply to moves with a single target
|
// Assume conditions affecting targets only apply to moves with a single target
|
||||||
let success = this.move.getMove().applyConditions(this.pokemon, targets[0], this.move.getMove());
|
let success = this.move.getMove().applyConditions(this.pokemon, targets[0], this.move.getMove());
|
||||||
let cancelled = new Utils.BooleanHolder(false);
|
let cancelled = new Utils.BooleanHolder(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user