mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-24 14:27:37 -04:00
Fix giving terastallize achievement for opponent
This commit is contained in:
parent
07fcfcccaf
commit
5a0cbfad56
1 changed files with 5 additions and 3 deletions
|
@ -564,9 +564,11 @@ export class TerastallizeModifier extends LapsingPokemonHeldItemModifier {
|
|||
|
||||
apply(args: any[]): boolean {
|
||||
const pokemon = args[0] as Pokemon;
|
||||
pokemon.scene.validateAchv(achvs.TERASTALLIZE);
|
||||
if (this.teraType === Type.STELLAR)
|
||||
pokemon.scene.validateAchv(achvs.STELLAR_TERASTALLIZE);
|
||||
if (pokemon.isPlayer()) {
|
||||
pokemon.scene.validateAchv(achvs.TERASTALLIZE);
|
||||
if (this.teraType === Type.STELLAR)
|
||||
pokemon.scene.validateAchv(achvs.STELLAR_TERASTALLIZE);
|
||||
}
|
||||
pokemon.updateSpritePipelineData();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue