local flashing |
function f:PLAYER_TARGET_CHANGED() |
if select(2,GetInstanceInfo()) == "none" and (GetCurrentMapContinent() == 3 or GetCurrentMapContinent() == 4) then |
for i=1,#Raretable[GetRealZoneText()] do |
if UnitName("target") == Raretable[GetRealZoneText()][i] and UnitIsTapped("target") == nil then |
flashing = true |
UIFrameFlash(LowHealthFrame, 0.5, 0.5, 60) |
RaidNotice_AddMessage(RaidBossEmoteFrame, Raretable[GetRealZoneText()][i].." found!",ChatTypeInfo["WHISPER"]) |
elseif flashing then |
UIFrameFlashStop(LowHealthFrame) |
flashing = nil |
if Raretable[GetRealZoneText()] then |
for i=1,#Raretable[GetRealZoneText()] do |
if UnitName("target") == Raretable[GetRealZoneText()][i] and UnitIsTapped("target") == nil then |
flashing = true |
UIFrameFlash(LowHealthFrame, 0.5, 0.5, 60) |
RaidNotice_AddMessage(RaidBossEmoteFrame, Raretable[GetRealZoneText()][i].." found!",ChatTypeInfo["WHISPER"]) |
elseif flashing then |
UIFrameFlashStop(LowHealthFrame) |
flashing = nil |
end |
end |
end |
end |