Quantcast
WoWInterface - View Single Post - Buff check
Thread: Buff check
View Single Post
03-11-20, 02:48 AM   #4
Narfi
A Murloc Raider
Join Date: Jan 2020
Posts: 7
Hey,

little bit older but perhaps you or anyone else need it anyway.
The easiest way I find for myself is:

Code:
local f = CreateFrame('Frame')
f:RegisterEvent("UNIT_AURA")

f:SetScript("OnEvent", function(_, event, ...)
        if not (AuraUtil.FindAuraByName('YOURBUFFNAME', "player", "HELPFUL")) then
		RaidNotice_AddMessage(RaidWarningFrame," spotted!", ChatTypeInfo["RAID_WARNING"])
  		end
end)



Cheers
Narfi

PS: Don't have a clue what im doing, just a try and error thing and I hate big complicated codes
  Reply With Quote