View Single Post
01-11-10, 02:44 PM   #44
opismahname
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 23
Originally Posted by Xrystal View Post
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
That one didnt work either actually.
  Reply With Quote