/
addon.colors["STUN"] = {r = 0.5, g = 0.2, b = 0.1}; |
addon.colors["DOT"] = {r = 0, g = 0.8, b = 0.8}; |
addon.colors["DEBUFF"] = {r = 0.8, g = 0.8, b = 0}; |
addon.colors["GREY"] = { r = 0.8, g = 0.8, b = 0.8}; |
---------------------------------------------------------------------------------------------------- |
addon.media:Register("statusbar", "NaturGlaze", [[Interface\AddOns\NaturCombat\media\glaze]]); |
---------------------------------------------------------------------------------------------------- |
end |
end |
-- Set Bar Color |
local color; |
local color = addon.colors["GREY"]; |
if (spell.type == "BUFF") then |
if (CombatLog_Object_IsA(dstFlags, COMBATLOG_FILTER_HOSTILE_PLAYERS)) then |
color = addon.colors["HOSTILEBUFF"]; |
addon:StartParsing("SPELL_CAST_SUCCESS", function(when,what,srcGUID,srcName,srcFlags,dstGUID,dstName,dstFlags,...) |
local spell = addon:GetSpellData(...); |
--Quick fix for refreshing spells until 2.4.3 SPELL_AURA_REFRESH |
if (dstGUID == UnitGUID("target") or dstGUID == UnitGUID("focus")) and (dstGUID ~= UnitGUID("player")) then |
addon.group:SetTime(dstGUID..spell.id, spell.duration); |
if (spell) and (spell.duration) then |
if (dstGUID == UnitGUID("target") or dstGUID == UnitGUID("focus")) and (dstGUID ~= UnitGUID("player")) then |
addon.group:SetTime(dstGUID..spell.id, spell.duration); |
end |
end |
----------- |
if (spell.special) and (srcGUID == UnitGUID("player")) then -- show this even tho the player casted it. |