Hello guys, I keep getting this error:
What I'm trying to do is getting the id/entry of the spell.
[Eluna]: Starting Lua Engine
[Eluna]: Searching scripts from `lua_scripts`
[Eluna]: Error loading file `lua_scripts/spell_check.lua`
lua_scripts/spell_check.lua:2: syntax error near 'spell'
[Eluna]: Loaded 0 Lua scripts
The script I made:
I updated my eluna/trinity revision after I got it and I still get it. (I'm running the latest version at the date of this post: commit c7dac697e83186360a69dea71607c86242b144ba)
local function OnSpellCast(event, player, spell, skipCheck)
I tried spell:GetId() and spell:GetEntry() both don't seem to work.
Am I doing something wrong or is eluna wrongly documented?
Thanks in advance,