From 5a0cbfad56a84849f528d83d27a50e157566c972 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Mon, 19 Feb 2024 10:25:28 -0500 Subject: [PATCH] Fix giving terastallize achievement for opponent --- src/modifier/modifier.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/modifier/modifier.ts b/src/modifier/modifier.ts index 1ef1ed5b5..4ea170e1a 100644 --- a/src/modifier/modifier.ts +++ b/src/modifier/modifier.ts @@ -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; }