Fix recharging moves causing a crash

This commit is contained in:
Flashfyre committed 2023-11-27 13:47:32 -05:00
1 parent c34eb05083
commit 2fcd7e20fa
4 files changed
+11 -8

No files matched your search

-1
View File
@@ -110,7 +110,6 @@ export class RechargingTag extends BattlerTag {
lapse(pokemon: Pokemon, lapseType: BattlerTagLapseType): boolean {
super.lapse(pokemon, lapseType);
(pokemon.scene.getCurrentPhase() as MovePhase).cancel();
pokemon.scene.queueMessage(getPokemonMessage(pokemon, ' must\nrecharge!'));
return true;
+1 -1
View File
@@ -2378,7 +2378,7 @@ export function getMoveTargets(user: Pokemon, move: Moves): MoveTargetSet {
}
export const allMoves: Move[] = [
new StatusMove(Moves.NONE, "-", Type.NORMAL, MoveCategory.STATUS, -1, -1, "", -1, 0, 1),
new SelfStatusMove(Moves.NONE, "-", Type.NORMAL, MoveCategory.STATUS, -1, -1, "", -1, 0, 1),
];
export function initMoves() {