oUF

99.9k Downloads

HolyPower Not Updating

ferous opened this issue ยท 6 comments

commented

HolyPower doesn't seem to be updating. Here is the thread with everything I was talking about on the WoWI forums: http://www.wowinterface.com/forums/showthread.php?t=34833

here is my code: http://pastie.org/1143643

It is not updating and showing three upon logging in or reloading UI even though I only have zero or 1 holypower. But, if I use Crusader Strike, or Holy Shock, or what Have you, it corrects itself and shows that i have 1, or 2 or the like. And if I use Word of Glory or what ever spell that consumes my HolyPower, it appropriately shows all my HolyPower Runes dissapearing, but if I log in and out or reload UI it shows all three active even though I don't.

commented

The slightly confusing statement above boils down to the number of displayed Holy Runes not being correct after player login or UI reload.

Registering PLAYER_ENTERING_WORLD and performing an update from that event should solve the issue.

commented

I knew it came out confusing :P I have a hard time expaining things for some odd reason...

commented

This issue will affect the SoulShards element as well

commented

The problem is really that oUF executes Update without the powerType argument, making it return. A easy solution would just to tell oUF to update with ForceUpdate instead of Path.

This is true for the happiness element as well.

commented

Sounds like a nice idea as it saves having to register events in multiple elements for the startup event.
Those elements that don't have ForceUpdate functions may require some trickery to get around, but I'm sure you have a plan Haste :-D

commented

Solved by making it legal for powerType to be nil.