LunaUnitFrames

LunaUnitFrames

268k Downloads

Adding [numtargeting] to a bar results in constant error

jsabin69 opened this issue ยท 1 comments

commented

As in the title, adding the [numtargeting] tag in main assist target and other unit frames results in constant errors in wow classic stress test on latest version

Message: Interface\AddOns\LunaUnitFrames\modules\tags.lua:56: attempt to call global 'GetNumRaidMembers' (a nil value)
Time: Sat Aug 10 10:03:20 2019
Count: 49169
Stack: Interface\AddOns\LunaUnitFrames\modules\tags.lua:56: attempt to call global 'GetNumRaidMembers' (a nil value)
Interface\AddOns\LunaUnitFrames\modules\tags.lua:56: in function `?'
Interface\AddOns\LunaUnitFrames\modules\tags.lua:810: in function <Interface\AddOns\LunaUnitFrames\modules\tags.lua:800>

Locals: frame = LUFUnittarget {
0 =
OnLeave = defined @interface\AddOns\LunaUnitFrames\modules\movers.lua:124
portrait = {
}
UnregisterAll = defined @interface\AddOns\LunaUnitFrames\modules\units.lua:137
isDead = false
auras = {
}
castBar = {
}
registeredEvents =

{
}
UnitClassToken = defined @interface\AddOns\LunaUnitFrames\modules\units.lua:521
OnEnter = defined @interface\AddOns\LunaUnitFrames\modules\movers.lua:116
powerBar = {
}
RegisterNormalEvent = defined @interface\AddOns\LunaUnitFrames\modules\units.lua:59
configMode = true
topFrameLevel = 5
originalOnLeave = defined @interface\AddOns\LunaUnitFrames\modules\borders.lua:30
RegisterUpdateFunc = defined @interface\AddOns\LunaUnitFrames\modules\units.lua:110
originalOnEnter = defined @interface\AddOns\LunaUnitFrames\modules\borders.lua:19
SetBlockColor = defined @interface\AddOns\LunaUnitFrames\modules\units.lua:183
indicators = {
}
unitType = "target"
SetRangeAlpha = defined @interface\AddOns\LunaUnitFrames\modules\units.lua:171
visibility =
{
}
CheckModules = defined @interface\AddOns\LunaUnitFrames\modules\units.lua:239
highlight = {
}
incomingHeal = 0
unitInitialized = true
unitRealType = "target"
unit = "target"
ReregisterUnitEvents = defined @interface\AddOns\LunaUnitFrames\modules\units.lua:38
fontstrings =
{
}
unitGUID = "Creature-0-4389-1-1656-3338-00004CAEFB"
hasStateWatch = false
RegisterUnitEvent = defined @interface\AddOns\LunaUnitFrames\modules\units.lua:104
comboPoints = {
}
tagUpdate = {
}
isUnitVolatile = true
borders = {
}
unitEventOverrides =
{
}
healthBar = {
}
highFrame = {
}
UnregisterSingleEvent = defined @interface\AddOns\LunaUnitFrames\modules\units.lua:87
DisableRangeAlpha = defined @interface\AddOns\LunaUnitFrames\modules\units.lua:163
fullUpdates =
{
}
UnregisterUpdateFunc = defined @interface\AddOns\LunaUnitFrames\modules\units.lua:127
originalUnit = "target"
BlizzRegisterUnitEvent = defined =[C]:-1
incHeal = {
}
FullUpdate = defined @interface\AddOns\LunaUnitFrames\modules\units.lua:30
portraitModel = {
}
SetBarColor = defined @interface\AddOns\LunaUnitFrames\modules\units.lua:179
}
unit = "target"
count = 0
(*temporary) = 1
(*temporary) = nil
(*temporary) = "attempt to call global 'GetNumRaidMembers' (a nil value)"

commented

Should be easy to fix..

GetNumRaidMembers should be GetNumGroupMembers
and
GetNumPartyMembers should be GetNumSubgroupMembers

according to: https://wow.gamepedia.com/API_GetNumRaidMembers