Fix crash with Future Sight after catch
This commit is contained in:
parent
4d8663d274
commit
8c6f77f4c0
|
@ -2021,7 +2021,7 @@ export class MoveEffectPhase extends PokemonPhase {
|
||||||
const user = this.getUserPokemon();
|
const user = this.getUserPokemon();
|
||||||
const targets = this.getTargets();
|
const targets = this.getTargets();
|
||||||
|
|
||||||
if (!user)
|
if (!user || !user.scene)
|
||||||
return this.end();
|
return this.end();
|
||||||
|
|
||||||
const overridden = new Utils.BooleanHolder(false);
|
const overridden = new Utils.BooleanHolder(false);
|
||||||
|
|
Loading…
Reference in New Issue