Skip to content

Commit

Permalink
BCC TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
Resike committed Apr 15, 2022
1 parent 1397a4f commit 54d1546
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
4 changes: 4 additions & 0 deletions !Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
**7.0.8**
* Update for 9.2.0.
* BCC fixes.

**7.0.7**
* BCC class fixes.
* Fixed error in Dispel module while in rated BG.
Expand Down
20 changes: 20 additions & 0 deletions Gladius.lua
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,26 @@ function Gladius:OnInitialize()
self:ShowUnit(unit)
end
end)

hooksecurefunc("UnitFrameHealthBar_Update", function(self, unit)
local _, unitClass = UnitClass(unit)
if unitClass then
self.buttons[unit].class = unitClass
self.buttons[unit].specIcon = unitClass
self:UpdateUnit(unit)
self:ShowUnit(unit)
end
end)
hooksecurefunc("HealthBar_OnValueChanged", function(self)
local unit = self.unit
local _, unitClass = UnitClass(unit)
if unitClass then
self.buttons[unit].class = unitClass
self.buttons[unit].specIcon = unitClass
self:UpdateUnit(unit)
self:ShowUnit(unit)
end
end)
end

--[[if ArenaEnemyFrame_SetMysteryPlayer then
Expand Down
4 changes: 2 additions & 2 deletions Gladius.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 90005
## Interface: 20504
## Title: Gladius
## Version: 7.0.7
## Version: 7.0.8
## Notes: Arena enemy unit frames.
## Author: Resike and Firebunny. Original author: Proditor
## SavedVariables: Gladius2DB
Expand Down
2 changes: 1 addition & 1 deletion Modules/Racial.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Gladius = _G.Gladius
local Gladius = _G.Gladius
if not Gladius then
DEFAULT_CHAT_FRAME:AddMessage(format("Module %s requires Gladius", "Racial"))
end
Expand Down

0 comments on commit 54d1546

Please sign in to comment.