Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Fix cooldown not showing on Extra and Zone ability bars
Browse files Browse the repository at this point in the history
  • Loading branch information
brittyazel committed Jan 25, 2019
1 parent b4f5c5b commit 74c1417
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Objects/EXTRABTN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ function EXTRABTN:SetType()
self:RegisterUnitEvent("UNIT_AURA", "player")

self:SetAttribute("type1", "action")
self:SetAttribute("useparent-unit", false)
self:SetAttribute("unit", ATTRIBUTE_NOOP)
--self:SetAttribute("useparent-unit", false)
--self:SetAttribute("unit", ATTRIBUTE_NOOP)
--action content gets set in UpdateButton
self:UpdateButton()

Expand Down Expand Up @@ -99,17 +99,17 @@ function EXTRABTN:UpdateButton()
_, self.spellID = GetActionInfo(self.actionID)
self.spellName, _, self.spellIcon = GetSpellInfo(self.spellID);

if self.spellID then
if self.spellName then
self:UpdateIcon()

if not InCombatLockdown() then
self:SetAttribute("action1", self.actionID)
end

self:SetSpellCooldown(self.spellID)
self:SetSpellCooldown(self.spellName)

---extra button charges (some quests have ability charges)
self:UpdateSpellCount(self.spellID)
self:UpdateSpellCount(self.spellName)
end

---make sure our button gets the correct Normal texture if we're not using a Masque skin
Expand Down
8 changes: 4 additions & 4 deletions Objects/ZONEABILITYBTN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ function ZONEABILITYBTN:SetType()
self:RegisterEvent("SPELL_UPDATE_CHARGES", "OnEvent")

self:SetAttribute("type1", "macro")
self:SetAttribute("useparent-unit", false)
self:SetAttribute("unit", ATTRIBUTE_NOOP)
--self:SetAttribute("useparent-unit", false)
--self:SetAttribute("unit", ATTRIBUTE_NOOP)
--macro content gets set in UpdateButton
self:UpdateButton()

Expand Down Expand Up @@ -98,10 +98,10 @@ function ZONEABILITYBTN:UpdateButton()
self:SetAttribute("macrotext1", "/cast " .. self.spellName .. "();")
end

self:SetSpellCooldown(self.spellID)
self:SetSpellCooldown(self.spellName)

---zone ability button charges (I'm not sure if zone abilities have charges, but this is just in case)
self:UpdateSpellCount(self.spellID)
self:UpdateSpellCount(self.spellName)
end

---make sure our button gets the correct Normal texture if we're not using a Masque skin
Expand Down

0 comments on commit 74c1417

Please sign in to comment.