mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-29 18:59:28 +02:00
fix challenge condition
This commit is contained in:
parent
9e9d8458dc
commit
666ba48567
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user