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

Commit

Permalink
Make extrabutton logic consistent with zoneability button
Browse files Browse the repository at this point in the history
  • Loading branch information
brittyazel committed Jan 18, 2019
1 parent 3c0c0c7 commit e7e9a7e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Objects/EXTRABTN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,8 @@ function EXTRABTN:ExtraButton_Update()
end

_, self.spellID = GetActionInfo(self.actionID)

self.spellName, _, self.spellIcon = GetSpellInfo(self.spellID);

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

if self.spellID then
self:SetButtonTex()

Expand All @@ -107,6 +102,10 @@ function EXTRABTN:ExtraButton_Update()
if (start) then
self:SetCooldownTimer(start, duration, enable, self.cdText, modrate, self.cdcolor1, self.cdcolor2, self.cdAlpha)
end

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


Expand Down

0 comments on commit e7e9a7e

Please sign in to comment.