Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-15-11, 03:09 PM   #1
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 484
Word of Glory Predicted Health

So I made a Word of Glory predicted health feature (Thanks Crispii for the code!), only to realize after using it for the night that WoG has a coefficient with SpellPower and AttackPower (hurpdurp?). So, now I'm wondering if there's anyway to directly call to that spell and find out the exact amount, since it doesn't change unless there is a change in spellpower/attackpower?

Or maybe I'm thinking about it the wrong way.

Here's what I have so far:

Code:
function FracHealthWOG()
  local hpa = 2678
  local pta = UnitPower(uid, 9);
  local a = (UnitHealth(uid)+(hpa*pta));
  local b = UnitHealthMax(uid);
  if(b<1) then return 0; end
  a=a/b;
  if a<0 then
    return 0;
  elseif a>1 then
    return 1;
  else
    return a;
  end
end
wog = FracHealthWOG();
Also, would there be an easy way to automatically change PTA, which is either 1,2,3 (holy power) to 3 when Hand of Light (my mastery buff) pops up?

Thanks!
__________________


kúdan: im playing pantheon
JRCapablanca: no youre not
** Pantheon has been Banned. **
  Reply With Quote
 

WoWInterface » Featured Projects » OpenRDX » OpenRDX Support » OpenRDX: Feature Requests » Word of Glory Predicted Health


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