fix challenge condition

This commit is contained in:
frutescens 2024-09-17 09:02:46 -07:00
parent 9e9d8458dc
commit 666ba48567

View File

@ -789,7 +789,7 @@ export class SmeargleChallenge extends Challenge {
} }
applyPokemonInBattle(pokemon: Pokemon, valid: Utils.BooleanHolder): boolean { applyPokemonInBattle(pokemon: Pokemon, valid: Utils.BooleanHolder): boolean {
if (pokemon.species.speciesId !== Species.SMEARGLE || pokemon.isFusion()) { if ((pokemon.species.speciesId !== Species.SMEARGLE || pokemon.isFusion()) && pokemon.isPlayer()) {
valid.value = false; valid.value = false;
return true; return true;
} }