View Single Post
01-11-10, 02:11 PM   #43
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
Okay, just tested this myself, and the reason why it probably isn't working for you is if the buff already exists. The message will only appear after the buff has been added and not if it is already active.

If you try this out you will see what happens when:

Code:
local function eventHandler(self, event, ...)
    active = UnitBuff('player', 'Righteous Fury')
    if not hasrf and active then
        hasrf = true
        RaidNotice_AddMessage(RaidWarningFrame, "Threat Buff Activated", ChatTypeInfo["RAID_WARNING"])
    elseif hasrf and not active then
        hasrf = false
        RaidNotice_AddMessage(RaidWarningFrame, "Threat Buff Deactivated", ChatTypeInfo["RAID_WARNING"])
    elseif hasrf and active
        RaidNotice_AddMessage(RaidWarningFrame, "Threat Buff Refreshed", ChatTypeInfo["RAID_WARNING"])
    end
end
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818

Last edited by Xrystal : 01-11-10 at 02:13 PM.
  Reply With Quote