Close
Showing results 1 to 9 of 9

Threaded View

  1. #8

    Default

    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
    i did several tests.

    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.
    Last edited by Prega : 12-04-2010 at 10:17 AM

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •