Thread Tools Display Modes
10-18-14, 03:33 PM   #1
ogunarek
A Defias Bandit
Join Date: Oct 2014
Posts: 3
Paladin Holy Power constantly full

I've been using Quse UI for around a year now, and oUF is included in it along with oUF_Mlight. However the Quse UI author isn't updating it anymore and has been inactive for a while. I've managed to fix a few addons to work with 6.0, and updated oUF aswell (didn't change anything yet).

However the problem I have with oUF is that when I play my paladin (my main) the holy power bars are always full, even outside of combat, afking in the city. (picture here)

Could this be related to me updating oUF or oUF_Mlight just not being compatible anymore? Does anyone have any idea how to fix this? Would love to continue using this setup. I'm pretty new to Lua, so my apologies if this is a stupid question/wrong place to ask.

Any response is greatly appreciated.

oUF_Mlight holy power code:
Lua Code:
  1. local HolyPowerOverride = function(self, event, unit, powerType)
  2.             if(self.unit ~= unit or (powerType and powerType ~= "HOLY_POWER")) then return end
  3.            
  4.             local hholder = self.HolyPower
  5.            
  6.             local holypower = UnitPower("player", SPELL_POWER_HOLY_POWER)
  7.             local maxholypower = UnitPowerMax("player", SPELL_POWER_HOLY_POWER)
  8.            
  9.             if not hholder.maxholypower then hholder.maxholypower = 5 end
  10.            
  11.             if hholder.maxholypower ~= maxholypower then
  12.                     for i = 1, 5 do
  13.                             hholder[i]:SetWidth((cfg.width+3)/maxholypower-3)
  14.                     end
  15.                    
  16.                     hholder.maxholypower = maxholypower
  17.             end
  18.      
  19.             for i = 1, 5 do
  20.                     if i <= holypower then
  21.                             hholder[i]:SetAlpha(1)
  22.                     else
  23.                             hholder[i]:SetAlpha(0)
  24.                     end
  25.             end
  26.     end

Last edited by ogunarek : 10-20-14 at 05:18 AM.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Paladin Holy Power constantly full


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