Fix recharging moves causing a crash
This commit is contained in:
1 parent
c34eb05083
commit
2fcd7e20fa
4 files changed
+11
-8
No files matched your search
@@ -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
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user