Skip to content

Commit

Permalink
not touching default portrait
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Sep 7, 2019
1 parent 2b16d6e commit cc39447
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### 1.13.27

- not touching default portrait at all now
- Pyroblast timer
- Fireball timers now stack

### 1.13.26

- Sunder Armor 5 stack refresh fix
Expand Down
5 changes: 2 additions & 3 deletions code.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,10 @@ local UpdatePortraitIcon = function(unit, maxPrio, maxPrioIndex, maxPrioFilter)
end
end
SetPortraitToTexture(auraCD.texture, icon)
originalPortrait:Hide()
auraCD:SetCooldown(expirationTime-duration, duration)
auraCD:Show()
else
auraCD:Hide()
originalPortrait:Show()
end
end

Expand Down Expand Up @@ -216,7 +214,8 @@ function f.PLAYER_LOGIN(self, event)
local originalPortrait = _G["TargetFramePortrait"];

local auraCD = CreateFrame("Cooldown", "ClassicAuraDurationsPortraitAura", TargetFrame, "CooldownFrameTemplate")
auraCD:SetFrameStrata("BACKGROUND")
auraCD:SetFrameStrata("LOW")
auraCD:SetFrameLevel(1)
auraCD:SetDrawEdge(false);
-- auraCD:SetHideCountdownNumbers(true);
auraCD:SetReverse(true)
Expand Down

0 comments on commit cc39447

Please sign in to comment.