Skip to content

Commit

Permalink
2 fixes
Browse files Browse the repository at this point in the history
- Make [threat] return whole numbers
- Fix lua error with 2d status portraits
  • Loading branch information
Aviana committed Sep 9, 2021
1 parent 628c2e4 commit 796639f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LunaUnitFrames.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- Luna Unit Frames 4.0 by Aviana

LUF = select(2, ...)
LUF.version = 4200
LUF.version = 4210

local L = LUF.L
local ACR = LibStub("AceConfigRegistry-3.0", true)
Expand Down
2 changes: 1 addition & 1 deletion LunaUnitFrames.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: Luna Unit Frames
## Notes:
## Author: Aviana
## Version: 4200
## Version: 4210
## SavedVariables: LunaUFDB
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets, Clique
## X-License: WTFPL (http://www.wtfpl.net/about/)
Expand Down
2 changes: 1 addition & 1 deletion libs/oUF_Plugins/oUF_StatusPortrait/oUF_StatusPortrait.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ local function Update(self, event, unit)
element.texture:Hide()
element.model:Show()
elseif element.type == "class" or element.type == "2dclass" and UnitIsPlayer(unit) then
local class = select(2,UnitClass(unit))
local class = select(2,UnitClass(unit)) or "WARRIOR"
element.texture:SetTexture("Interface\\Glues\\CharacterCreate\\UI-CharacterCreate-Classes")
element.texture:SetTexCoord(CLASS_ICON_TCOORDS[class][1], CLASS_ICON_TCOORDS[class][2], CLASS_ICON_TCOORDS[class][3], CLASS_ICON_TCOORDS[class][4])
element.texture:Show()
Expand Down
2 changes: 1 addition & 1 deletion libs/oUF_Plugins/oUF_TagsWithHeal/oUF_TagsWithHeal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ local tagStrings = {
status, scaledPercentage = select(2, UnitDetailedThreatSituation("player", unit))
end
if status then
return scaledPercentage.."%"
return ceil(scaledPercentage).."%"
end
end]],

Expand Down

0 comments on commit 796639f

Please sign in to comment.