Skip to content

Commit

Permalink
Merge pull request #443 from WatWowMap/develop
Browse files Browse the repository at this point in the history
merge Develop
  • Loading branch information
ReuschelCGN authored Mar 4, 2024
2 parents 4659160 + aa68467 commit fa1cc7b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/src/services/filters/pokemon/Backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,15 +360,15 @@ module.exports = class PkmnBackend {
!this.mods.mem ||
filterRTree(pokemon, this.perms.areaRestrictions, this.mods.onlyAreas)
) {
if (
(this.mods.onlyHundoIv && pokemon.iv === 100) ||
(this.mods.onlyZeroIv && pokemon.iv === 0)
)
return true
if (
!this.mods.onlyLinkGlobal ||
(this.pokemon === pokemon.pokemon_id && this.form === pokemon.form)
) {
if (
(this.mods.onlyHundoIv && pokemon.iv === 100) ||
(this.mods.onlyZeroIv && pokemon.iv === 0)
)
return true
if (!this.expertFilter || !this.expertGlobal) return true
if (this.expertFilter(pokemon)) {
return true
Expand Down

0 comments on commit fa1cc7b

Please sign in to comment.