Simplify DisablingBattlerTag lapse

This commit is contained in:
Zach Day 2024-08-09 20:42:51 -04:00
parent daf063be19
commit 3fe58ac5db

View File

@ -110,20 +110,15 @@ export abstract class DisablingBattlerTag extends BattlerTag {
const phase = pokemon.scene.getCurrentPhase() as MovePhase;
const move = phase.move;
if (!this.moveIsDisabled(move.moveId)) {
return true;
if (this.moveIsDisabled(move.moveId)) {
pokemon.scene.queueMessage(this.interruptedText(pokemon, move.moveId));
phase.fail();
}
pokemon.scene.queueMessage(this.interruptedText(pokemon, move.moveId));
phase.fail();
} else if (lapseType === BattlerTagLapseType.TURN_END) {
// On turn end, subtract from lifetime and remove this tag if 0
if (!super.lapse(pokemon, lapseType)) {
return false;
}
return true;
}
return true;
return super.lapse(pokemon, lapseType);
}
/**