Code:
function Innervate_OnEvent(e)
if (e == "COMBAT_LOG_EVENT_UNFILTERED") then
local event,destName = arg2,arg7
if(event == "SPELL_AURA_APPLIED") then
local spellID = arg10
local isEnemy = (bit.band(arg5, COMBATLOG_OBJECT_REACTION_HOSTILE) == COMBATLOG_OBJECT_REACTION_HOSTILE)
spell,_,_ = GetSpellInfo(spellID)
if (spell == "Innervate" and isEnemy) then
ZoneTextString:SetText("INNERVATE!!");
ZoneTextFrame.startTime = GetTime()
ZoneTextString:SetTextColor(0, 1, 0);
PVPInfoTextString:SetText("");
ZoneTextFrame:Show()
end
end
end
end
Alright, the code is fairly straightforward, I'm trying to set it up to announce when "Innervate" (
http://www.wowhead.com/?spell=29166 ) is gained on an enemy.
It doesn't seem to be working and I believe I've narrowed down my problem to
Code:
if(event == "SPELL_AURA_APPLIED") then
local spellID = arg10
but it could be wrong.
Ideally, I would like to just search for the spell using spellID's instead of SpellName but every time i try it fails. Can anyone shine some light on this for me pretty please? I'm not sure where I'm messing up but I know I am because it's not working
and it's really buggin the heck outta me
Thanks !