v0.13.7
errors and warnings / stdlib

errors and warnings / stdlib / E8310

E8310 error

Invalid token in a literal aura filter

area
stdlib (x8xxx)
fails the build
yes

A literal aura filter passed to wowlua:aura (each, forEach, find, findByName, or a container group's filter) has a word that isn't an aura filter, an empty word, or a word or ! negation one of your flavors doesn't have. The words are |-separated and come from each client's AuraUtil.AuraFilters (HELPFUL, HARMFUL, PLAYER, RAID, CANCELABLE, …). Fix the spelling, or drop the word.

Example

× failswowlua
import * as aura from "wowlua:aura" for a in aura.each("player", "HELPFUL|MINE") do    print(a.name)end
✓ compileswowlua
import * as aura from "wowlua:aura" for a in aura.each("player", "HELPFUL|PLAYER") do    print(a.name)end

The compiler reports it like this:

error[E8310]: `MINE` is not an aura filter word
  ┌─ src/main.wowlua:3:30
  │
3 │ for a in aura.each("player", "HELPFUL|MINE") do
  │                              ^^^^^^^^^^^^^^ in this aura filter
codemessage
E8300Standard-library function unavailable on a targeted flavor (no fallback)

Offline

terminal
$ wowlua explain E8310
E8310 (error): Invalid token in a literal aura filter

source on GitHub ↗