phanx-wow / oUF_Phanx

WoW AddOn — oUF unit frames with many PvE-oriented features and a few options.
Other
5 stars 4 forks source link

Dispel Highlight #31

Open Scn3r opened 6 years ago

Scn3r commented 6 years ago

88x oUF_Phanx\Elements\DispelHighlight.lua:65: attempt to compare two nil values oUF_Phanx\Elements\DispelHighlight.lua:65: in function `func' oUF\events.lua:50: in function <oUF\events.lua:48> (tail call): ?

Locals: self = oUFPhanxPlayer { ReadyCheckIndicator = { } UpdateBorder = defined @oUF_Phanx\Functions.lua:95 ResInfo = { } UNIT_SPELLCAST_CHANNEL_START = defined @oUF\elements\castbar.lua:314 UNIT_MAXHEALTH =

{ } BorderTextures =
{ } UNIT_SPELLCAST_NOT_INTERRUPTIBLE = defined @oUF\elements\castbar.lua:243 PLAYER_REGEN_DISABLED = defined @oUF\elements\combatindicator.lua:58 RegisterForMouseover = defined @oUF_Phanx\Functions.lua:21 style = "Phanx" UNIT_EXITED_VEHICLE = defined @oUF\ouf.lua:46 UNIT_CONNECTION = defined @oUF\elements\health.lua:166 UNIT_HEAL_PREDICTION = defined @oUF\elements\healthprediction.lua:200 RegisterForRoleChange = defined @oUF_Phanx\Functions.lua:33 unit = "player" UNIT_SPELLCAST_DELAYED = defined @oUF\elements\castbar.lua:265 GetBorderColor = defined @oUF_Phanx\Features\Border.lua:41 UNIT_SPELLCAST_STOP = defined @oUF\elements\castbar.lua:292 UNIT_AURA =
{ } Threat =
{ } SetBorderSize = defined @oUF_Phanx\Features\Border.lua:80 Buffs = { } HealthPrediction =
{ } UNIT_ENTERED_VEHICLE = defined @oUF\ouf.lua:46 mouseovers =
{ } UNIT_SPELLCAST_INTERRUPTIBLE = defined @oUF\elements\castbar.lua:221 PLAYER_FLAGS_CHANGED = defined @oUF_Phanx\Elements\AFK.lua:52 SetBackdropBorderColor = defined @oUF_Phanx\Features\Border.lua:18 __elements =
{ } Castbar = oUFPhanxStatusBar47 { } UNIT_DISPLAYPOWER = defined @oUF\elements\additionalpower.lua:178 debuffType = 24 SetBorderColor = defined @oUF_Phanx\Features\Border.lua:18 UNIT_HEALTH = defined @oUF\elements\healthprediction.lua:200 Health = oUFPhanxStatusBar41 { } RAID_TARGET_UPDATE = defined @oUF\elements\raidtargetindicator.lua:62 PLAYER_REGEN_ENABLED = defined @oUF\elements\combatindicator.lua:58 UNIT_FACTION = defined @oUF\elements\health.lua:166 overlay = { } 0 = UNIT_HEALTH_FREQUENT = defined @oUF\elements\health.lua:166 UNIT_ABSORB_AMOUNT_CHANGED = defined @oUF\elements\healthprediction.lua:200 GetBorderLayer = defined @oUF_Phanx\Features\Border.lua:56 SetBorderParent = defined @oUF_Phanx\Features\Border.lua:62 UNIT_SPELLCAST_START = defined @oUF\elements\castbar.lua:107 PLAYER_UPDATE_RESTING = defined @oUF\elements\restingindicator.lua:58 SetBorderLayer = defined @oUF_Phanx\Features\Border.lua:47 spawnunit = "player" GROUP_ROSTER_UPDATE = defined @oUF\elements\leaderindicator.lua:59 PARTY_LEADER_CHANGED = defined @oUF\elements\leaderindicator.lua:59 GetBorderSize = defined @oUF_Phanx\Features\Border.lua:102 DispelHighlight =
{ } UNIT_SPELLCAST_CHANNEL_STOP = defined @oUF\elements\castbar.lua:408 AFK = { } UNIT_SPELLCAST_CHANNEL_UPDATE = defined @oUF\elements\castbar.lua:378 GetBorderParent = defined @oUF_Phanx\Features\Border.lua:74 AdditionalPower = oUFPhanxStatusBar45 { } RaidTargetIndicator = { } LeaderIndicator = { } UNIT_EXITING_VEHICLE = defined @oUF\ouf.lua:46 UNIT_SPELLCAST_INTERRUPTED = defined @Interface

Technojo01 commented 6 years ago

I think I fixed it. In DispelHighlight.lua, change this line : local name, _, _, _, type = UnitDebuff(unit, i) for local name, _, _, type = UnitDebuff(unit, i)