i did several tests.Is this communication solution required because UnitPower("party2", 9) always returns zero, even if the character in slot party2 is a paladin?
Alternatively, does UnitPower(unit, 9) only return meaningful values when unit == "player"? Is this a bug or a feature of the API?
Thanks,
Alge
Do an example.
do a macro with this script inside. It assigns s=UnitPower and print s in the chat.
generic script, without real parameters for UnitPower:
/run s = UnitPower(unit,powertype); print s;
as said, this script could be tested in a macro button, if you click this macro it prints in chat current value registered by UnitPower function.
real example: i test mana, powertype 0.
for my paladin, Yargo. im doing this on other char, for example on my druid Chymera.
/run s = UnitPower("Yargo",0); print s;
result: script shows current mana for yargo.5591
example: i test mana for "party1". im groupped with yargo ofc.
/run s = UnitPower("party1",0); print s;
result: script shows current mana for party1.5591
etc etc.
now Holy Power type.
test for powertype = 9, aka Holy Power
same tests, for yargo and for party1
/run s = UnitPower("party1",9); print s;
result is always 0. same for "Yargo".
i think it s not something wrong, but it s working as inteded, exactly as happens for combo points, or Rune.
Blizzard probably thinks HolyPower is a useful value just for current player.
Connect With Us