Skip to content

Commit

Permalink
Remove name tag in some queries
Browse files Browse the repository at this point in the history
  • Loading branch information
lantua committed Aug 19, 2024
1 parent 7e6803c commit 2b1a385
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
16 changes: 13 additions & 3 deletions libs/gi/formula/src/data/util/tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,19 @@ export function convert<V extends Record<string, Record<string, Desc>>>(

// Default queries
export const self = convert(selfTag, { et: 'self', dst: 'all' })
export const team = convert(selfTag, { et: 'team', src: null, dst: 'all' })
export const target = convert(selfTag, { et: 'target', src: null })
export const enemy = convert(enemyTag, { et: 'enemy', src: null, dst: null })
export const team = convert(selfTag, {
et: 'team',
src: null,
dst: 'all',
name: null,
})
export const target = convert(selfTag, { et: 'target', src: null, name: null })
export const enemy = convert(enemyTag, {
et: 'enemy',
src: null,
dst: null,
name: null,
})

// Default tag DB keys
export const selfBuff = convert(selfTag, { et: 'self' })
Expand Down
16 changes: 13 additions & 3 deletions libs/sr/formula/src/data/util/tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,19 @@ export function convert<V extends Record<string, Record<string, Desc>>>(

// Default queries
export const self = convert(selfTag, { et: 'self', dst: 'all' })
export const team = convert(selfTag, { et: 'team', src: null, dst: 'all' })
export const target = convert(selfTag, { et: 'target', src: null })
export const enemy = convert(enemyTag, { et: 'enemy', src: null, dst: null })
export const team = convert(selfTag, {
et: 'team',
src: null,
dst: 'all',
name: null,
})
export const target = convert(selfTag, { et: 'target', src: null, name: null })
export const enemy = convert(enemyTag, {
et: 'enemy',
src: null,
dst: null,
name: null,
})

// Default tag DB keys
export const selfBuff = convert(selfTag, { et: 'self' })
Expand Down

0 comments on commit 2b1a385

Please sign in to comment.