Fix giving terastallize achievement for opponent
This commit is contained in:
parent
07fcfcccaf
commit
5a0cbfad56
|
@ -564,9 +564,11 @@ export class TerastallizeModifier extends LapsingPokemonHeldItemModifier {
|
||||||
|
|
||||||
apply(args: any[]): boolean {
|
apply(args: any[]): boolean {
|
||||||
const pokemon = args[0] as Pokemon;
|
const pokemon = args[0] as Pokemon;
|
||||||
pokemon.scene.validateAchv(achvs.TERASTALLIZE);
|
if (pokemon.isPlayer()) {
|
||||||
if (this.teraType === Type.STELLAR)
|
pokemon.scene.validateAchv(achvs.TERASTALLIZE);
|
||||||
pokemon.scene.validateAchv(achvs.STELLAR_TERASTALLIZE);
|
if (this.teraType === Type.STELLAR)
|
||||||
|
pokemon.scene.validateAchv(achvs.STELLAR_TERASTALLIZE);
|
||||||
|
}
|
||||||
pokemon.updateSpritePipelineData();
|
pokemon.updateSpritePipelineData();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue