/trunk
]] |
local addon, BabySeal = ... |
BabySeal.prefix = string.format("|cff00aaff%s|r", addon) |
BabySeal.wp = "|cffff0000Warning!|r" |
BabySeal.prefix = string.format("|cff00aaff%s:|r |cffff0000Warning!|r", addon) |
function BabySeal:PLAYER_LOGIN() |
BabySealDB = BabySealDB or { |
if db.raidwarning then |
RaidNotice_AddMessage(RaidWarningFrame, s, ChatTypeInfo["RAID_WARNING"]) |
else |
print(self.wp, s) |
print(self.prefix, s) |
end |
if db.sound then |
local name, rank, icon, count, dispelType, duration, expires, caster, isStealable = UnitBuff("player", v) |
if name then |
if caster == "player" then |
self.playerBuff = true |
return true, expires |
else |
-- equivalent buff is active, but is not mine |
self.playerBuff = false |
return true, expires |
end |
self.playerBuff = caster == "player" and true or false |
return true, expires |
end |
end |