local function eventHandler(self, event, ...)
end
|
That closes the function as soon as you start it. You need to put the "end" at the *end* of the function
To be a bit more illustrative, look at what your current code looks like indented:
lua Code:
local function eventHandler(self, event, ...)
local active = UnitBuff('player', 'Righteous Fury')
if not hasrf and active then
hasrf = true
print('Rigtheous Fury has been activated')
elseif hasrf and not active then
hasrf = false
end
does that make the problem more clear?