git
/
wowui.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
89d259f
)
e2567ab - Dispellable debuff priority higher
author
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Tue, 30 Jul 2019 20:25:15 +0000
committer
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Tue, 30 Jul 2019 20:25:15 +0000
kehys/updater.lua
patch
|
blob
|
history
diff --git
a/kehys/updater.lua
b/kehys/updater.lua
index
eed2eaf
..
05696d3
100644
(file)
--- a/
kehys/updater.lua
+++ b/
kehys/updater.lua
@@
-141,11
+141,11
@@
function addon.FrameUpdate(frame)
frame.overlay.color = majorcolor;
if not frame.overlay:IsShown() then frame.overlay:Show() end
end
frame.overlay.color = majorcolor;
if not frame.overlay:IsShown() then frame.overlay:Show() end
end
- elseif
next(frame.heal)
then
- --
major heals needed
- if frame.overlay.color ~=
hea
lcolor then
- frame.overlay:SetVertexColor(unpack(
hea
lcolor));
- frame.overlay.color =
hea
lcolor;
+ elseif
UnitDebuff(unit, 1, "RAID") ~= nil
then
+ --
dispellable
+ if frame.overlay.color ~=
dispe
lcolor then
+ frame.overlay:SetVertexColor(unpack(
dispe
lcolor));
+ frame.overlay.color =
dispe
lcolor;
if not frame.overlay:IsShown() then frame.overlay:Show() end
end
elseif UnitIsCharmed(unit) and frame.unit == frame.displayed then
if not frame.overlay:IsShown() then frame.overlay:Show() end
end
elseif UnitIsCharmed(unit) and frame.unit == frame.displayed then
@@
-155,11
+155,11
@@
function addon.FrameUpdate(frame)
frame.overlay.color = charmcolor;
if not frame.overlay:IsShown() then frame.overlay:Show() end
end
frame.overlay.color = charmcolor;
if not frame.overlay:IsShown() then frame.overlay:Show() end
end
- elseif
UnitDebuff(unit, 1, "RAID") ~= nil
then
- --
dispellable
- if frame.overlay.color ~=
dispe
lcolor then
- frame.overlay:SetVertexColor(unpack(
dispe
lcolor));
- frame.overlay.color =
dispe
lcolor;
+ elseif
next(frame.heal)
then
+ --
major heals needed
+ if frame.overlay.color ~=
hea
lcolor then
+ frame.overlay:SetVertexColor(unpack(
hea
lcolor));
+ frame.overlay.color =
hea
lcolor;
if not frame.overlay:IsShown() then frame.overlay:Show() end
end
else
if not frame.overlay:IsShown() then frame.overlay:Show() end
end
else