mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 02:36:02 +00:00
unitframes: use mod function for tbc compatibility
This commit is contained in:
+1
-1
@@ -1312,7 +1312,7 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
|
||||
f.portrait.model.next = CreateFrame("PlayerModel", nil, nil)
|
||||
f.feedbackText = f:CreateFontString("pfHitIndicator" .. f.label .. f.id, "OVERLAY", "NumberFontNormalHuge")
|
||||
|
||||
if f.label == "raid" and math.mod(f.id, 5) == 1 then
|
||||
if f.label == "raid" and mod(f.id, 5) == 1 then
|
||||
local group = math.ceil(f.id/5)
|
||||
f.group = f.group or f.hp.bar:CreateFontString("Status", "OVERLAY", "GameFontNormalSmall")
|
||||
f.group:SetFont(pfUI.font_unit, 8, "OUTLINE")
|
||||
|
||||
Reference in New Issue
Block a user