[BUG] core.lua:230: attempt to index local 'colorUnit' (a nil value)
nuiva opened this issue ยท 1 comments
What steps will reproduce the problem?
- Be in a raid group with pets.
- Get in combat with a big enemy, such that it is drawn further away than players.
- Run away while the raid is fighting.
What version of ThreatClassic2 are you using? (Stating 'latest' is not useful)
ThreatClassic2 v2.24
Any additional information? (example: WoW language if not English) (Attach screenshots here if available, do not link externally)
UnitReaction("raidpetX","player")
returns nil
if the pet is not within draw distance.
Do you have an error log of what happened?
Message: Interface\AddOns\ThreatClassic2\core\core.lua:230: attempt to index local 'colorUnit' (a nil value)
Time: Tue Oct 13 21:38:21 2020
Count: 28
Stack: Interface\AddOns\ThreatClassic2\core\core.lua:230: attempt to index local 'colorUnit' (a nil value)
Interface\AddOns\ThreatClassic2\core\core.lua:230: in function <Interface\AddOns\ThreatClassic2\core\core.lua:223>
(tail call): ?
Interface\AddOns\ThreatClassic2\core\core.lua:275: in function `UpdateThreatBars'
Interface\AddOns\ThreatClassic2\core\core.lua:394: in function <Interface\AddOns\ThreatClassic2\core\core.lua:366>
Interface\AddOns\ThreatClassic2\core\core.lua:692: in function <Interface\AddOns\ThreatClassic2\core\core.lua:687>
Locals: unit = "raidpet8"
colorUnit = nil
(*temporary) = <table> {
}
(*temporary) = nil
(*temporary) = "raidpet8"
(*temporary) = "player"
(*temporary) = nil
(*temporary) = "attempt to index local 'colorUnit' (a nil value)"
UnitIsPlayer = <function> defined =[C]:-1
RAID_CLASS_COLORS = <table> {
HUNTER = <table> {
}
WARRIOR = <table> {
}
PALADIN = <table> {
}
MAGE = <table> {
}
PRIEST = <table> {
}
SHAMAN = <table> {
}
WARLOCK = <table> {
}
DEMONHUNTER = <table> {
}
DEATHKNIGHT = <table> {
}
DRUID = <table> {
}
MONK = <table> {
}
ROGUE = <table> {
}
}
select = <function> defined =[C]:-1
UnitClass = <function> defined =[C]:-1
FACTION_BAR_COLORS = <table> {
6 = <table> {
}
2 = <table> {
}
8 = <table> {
}
3 = <table> {
}
1 = <table> {
}
4 = <table> {
}
5 = <table> {
}
7 = <table> {
}
}
UnitReaction = <function> defined =[C]:-1
C = <table> {
font = <table> {
}
general = <table> {
}
warnings = <table> {
}
customBarColors = <table> {
}
frame = <table> {
}
backdrop = <table> {
}
bar = <table> {
}
}