Skip to content

Commit

Permalink
更新酒仙资源条监控
Browse files Browse the repository at this point in the history
  • Loading branch information
siweia committed Oct 25, 2020
1 parent cb2f80e commit 022036e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 30 deletions.
3 changes: 2 additions & 1 deletion Interface/AddOns/NDui/Config/AuraWatchList/Monk.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ local list = {
{AuraID = 195630, UnitID = "player"}, -- 醉拳大师
{AuraID = 115295, UnitID = "player", Value = true}, -- 金钟罩
{AuraID = 116847, UnitID = "player"}, -- 碧玉疾风
{AuraID = 322507, UnitID = "player"}, -- 天神酒
{AuraID = 322507, UnitID = "player", Value = true}, -- 天神酒
{AuraID = 325092, UnitID = "player"}, -- 净化真气
},
["Focus Aura"] = { -- 焦点光环组
{AuraID = 115078, UnitID = "focus", Caster = "player"}, -- 分筋错骨
Expand Down
31 changes: 2 additions & 29 deletions Interface/AddOns/NDui/Modules/Auras/Lumos/Monk.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ local A = B:GetModule("Auras")

if DB.MyClass ~= "MONK" then return end

local function GetUnitAura(unit, spell, filter)
return A:GetUnitAura(unit, spell, filter)
end

local function UpdateCooldown(button, spellID, texture)
return A:UpdateCooldown(button, spellID, texture)
end
Expand Down Expand Up @@ -35,31 +31,8 @@ function A:ChantLumos(self)
UpdateCooldown(self.lumos[1], 121253, true)
UpdateBuff(self.lumos[2], 215479, 215479, false, "END")
UpdateBuff(self.lumos[3], 322507, 322507, true)
A:UpdateTotemAura(self.lumos[4], 608951, 132578, true)

do
local button = self.lumos[5]
local name, _, duration, expire, _, spellID = GetUnitAura("player", 124275, "HARMFUL")
if not name then name, _, duration, expire, _, spellID = GetUnitAura("player", 124274, "HARMFUL") end
if not name then name, _, duration, expire, _, spellID = GetUnitAura("player", 124273, "HARMFUL") end

if name and duration > 0 then
button.CD:SetCooldown(expire-10, 10)
button.CD:Show()
button.Icon:SetDesaturated(false)
else
button.CD:Hide()
button.Icon:SetDesaturated(true)
end
local texture = spellID and GetSpellTexture(spellID) or 463281
button.Icon:SetTexture(texture)

if button.Icon:GetTexture() == GetSpellTexture(124273) then
B.ShowOverlayGlow(button)
else
B.HideOverlayGlow(button)
end
end
UpdateBuff(self.lumos[4], 325092, 325092, nil, "END")
A:UpdateTotemAura(self.lumos[5], 608951, 132578, true)
elseif spec == 2 then
UpdateCooldown(self.lumos[1], 115151, true)
UpdateCooldown(self.lumos[2], 191837, true)
Expand Down

0 comments on commit 022036e

Please sign in to comment.