Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-27-13, 04:29 PM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Boss frames not working anymore

*edit*
Bug is fixed. The trick is to use frequentUpdates for the statusbar and the health tag for boss frames. UNIT_HEALTH does not fire properly for bossframes.
Damn. Since the last push and changes to the bossframe only the bossframe you are currently watching will update. All other bossframes will stick at 100% hp.

Made a screenshot of the Magera encounter.


All heads are at 100%. The tooltip shows the correct health of the other snake head.

Oh...

Maybe it is my issue. Has the way how bossframes will be spawned got changed? I'm curious because on my screenshot two of the bossframes have the same name aswell. Could be a hint.

My spawn code is:
Lua Code:
  1. if cfg.units.boss.show then
  2.     oUF:RegisterStyle("diablo:boss", createStyle)
  3.     oUF:SetActiveStyle("diablo:boss")
  4.     local boss = {}
  5.     for i = 1, MAX_BOSS_FRAMES do
  6.       local name = "oUF_DiabloBossFrame"..i
  7.       local unit = oUF:Spawn("boss"..i, name)
  8.       if i==1 then
  9.         unit:SetPoint(cfg.units.boss.pos.a1,cfg.units.boss.pos.af,cfg.units.boss.pos.a2,cfg.units.boss.pos.x,cfg.units.boss.pos.y)
  10.       else
  11.         unit:SetPoint("TOP", boss[i-1], "BOTTOM", 0, -5)
  12.       end
  13.       table.insert(oUF_Diablo_Units,name) --add frames to the slash command function
  14.       func.applyDragFunctionality(unit)
  15.       boss[i] = unit
  16.     end
  17.   end
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 04-02-13 at 01:55 PM.
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Boss frames not working anymore


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off