Skip to content

Commit

Permalink
fix: onlyLinkGlobal
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Sep 17, 2023
1 parent 8865ff2 commit 3df21d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/models/Pokemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ class Pokemon extends Model {
? Object.values(filterMap).flatMap((filter) => filter.buildApiFilter())
: []
if ((perms.iv || perms.pvp) && mem) {
const pokemon = Object.keys(filterMap).filter(key => key.includes('-'))
if (!ctx.onlyLinkGlobal) pokemon.push('') // add everything else
const pokemon = Object.keys(filterMap).filter((key) => key.includes('-'))
if (!globalFilter.mods.onlyLinkGlobal) pokemon.push('') // add everything else
filters.push(...globalFilter.buildApiFilter(pokemon))
if (onlyZeroIv) filters.push({ iv: [0, 0], pokemon })
if (onlyHundoIv) filters.push({ iv: [100, 100], pokemon })
Expand Down

0 comments on commit 3df21d2

Please sign in to comment.