Originally Posted by Wildbreath
about last error - seems you modify code and it tryes to edit raid debuffs, but raid debuffs not have a color border.
about show/hide -
Lua Code:
self.uf = CreateFrame('frame', nil, self) self.uf:SetScript('OnUpdate', function(ss, elapsed) ss = ss:GetParent() if not ss:IsShown() then return end ss.st = elapsed + (ss.st or 0) if ss.st > .2 then local h, mh = UnitHealth(ss.unit) or 1, UnitMaxHealth(ss.unit) or 100 local perc = h/(mh/100) print(perc) if perc < 100 or InCombatLockdown() or UnitAffectingCombat('player') then ss:SetAlpha(1) else ss:SetAlpha(0) end ss.st = 0 end end)
paste it after
Lua Code:
if self.unit == 'player' and not self.raidbutton then
|
Yeah that was true, I had edited them and will report back once i get into AV again.
Your code produces this error:
Code:
Message: Interface\AddOns\bUnitFrames\bUnitFrames.lua:1214: attempt to call global 'UnitMaxHealth' (a nil value)
Time: 02/15/13 18:33:42
Count: 5785
Stack: Interface\AddOns\bUnitFrames\bUnitFrames.lua:1214: in function <Interface\AddOns\bUnitFrames\bUnitFrames.lua:1209>
Locals: ss = bplayerUnitFrame {
0 = <userdata>
shadow = bplayerUnitFrameshadow {
}
combat = bplayerUnitFrameiconcombat {
}
SmoothBar = <function> defined @Interface\AddOns\bUnitFrames\bUnitFrames.lua:1027
elapsed = 49.708002308384
pvptimer = playerPVPTimer {
}
unit = "player"
resize = bplayerUnitFrameResizeButton {
}
panel = bplayerUnitFramepanel {
}
threat = bplayerUnitFramethreat {
}
power = bplayerUnitFramepowerbar {
}
st = 49.708002308384
uf = <unnamed> {
}
smooted = true
castbar = <unnamed> {
}
menu = <function> defined @Interface\AddOns\bUnitFrames\bUnitFrames.lua:2430
portrait = bplayerUnitFrameportrait {
}
name = bplayerUnitFrameunitnamestring {
}
isCastbar = <unnamed> {
}
title = <unnamed> {
}
health = bplayerUnitFramehealthbar {
}
}
elapsed = 0.0080000003799796
(*temporary) = 4350
(*temporary) = nil
(*temporary) = "player"
(*temporary) = "attempt to call global 'UnitMaxHealth' (a nil value)"
UnitHealth = <function> defined =[C]:-1
UnitAffectingCombat = <function> defined =[C]:-1
Edit:
No errors anymore in alterac valley, sorry for my mistake.