SUF don't show Arcane Charges #702


  • Defect
  • Fixed
Closed
Assigned to shadowed103
  • _ForgeUser12889481 created this issue Apr 13, 2014

    Hi,

    When I log on to my arcane mage and activate the "aura combo points option" in player's options, it won't show me any arcane charges.

    Tried to deactivate all other addons except SUF, made a new profile (and activated the option), with my mage it won't work. With my rogue, it works just perfect.

    I took a look into your source code and found an error, but not the fix:

    ["MAGE"] = {max = 6, name = GetSpellInfo(36032)}

    The number 6 is wrong, see here: http://wowhead.com/spell=114664  It has been changed to 4 in 5.2. But changing this value does not help, changing the spellid does not help either.

    Greetings

    €: Since im not very good at LUA, this might help you: http://wowhead.com/spell=36032#comments

  • _ForgeUser12889481 added the tags New Defect Apr 13, 2014
  • _ForgeUser12889481 edited description Apr 13, 2014
  • _ForgeUser12889481 edited description Apr 13, 2014
  • Shadowed103 posted a comment Apr 13, 2014

    Looks like the spellID was wrong, and the first one you linked is the right one. Try latest alpha and let me know if that fixes it.

  • _ForgeUser12889481 posted a comment Apr 14, 2014

    For a reason, I can't doenload your lastest alpha, only v3.10.6-4-geb0e430 (Apr 06, 2014)...

    But I manually edited the line to ["MAGE"] = {max = 4, name = GetSpellInfo(114664)}, unfortunately the aura combo points bar is still not working.

  • Shadowed103 posted a comment Apr 16, 2014

    What's the aura called, "Arcane Charge"?

    Get a charge of Arcane Charge on your Mage, and run

    /dump UnitAura("player", "Arcane Charge")

    screenshot that + put it into the ticket

  • _ForgeUser12889481 posted a comment Apr 17, 2014

    It just says:

    Dump: value=UnitAura("player", "Arcane Charge")

    empty result

    It's working with: /dump UnitDebuff("player", "Arcane Charge")

    Field 4 is the number of stacks, I think the UnitAura api method is just a bit bugged in that way...


    Edited Apr 17, 2014
  • Shadowed103 posted a comment Apr 17, 2014

    /dump ShadowUF.modules.auraPoints:GetPoints("player")

    returns the number of stacks?

  • _ForgeUser12889481 posted a comment Apr 18, 2014

    Nope. Version v3.10.7 - Alpha prints:

    Dump: value=ShadowUF.modules.auraPoints:GetPoints("player")

    [1]=0


    Edited Apr 18, 2014
  • Shadowed103 posted a comment Apr 18, 2014

    huh, ok what about

    /dump (GetSpellInfo(114664)) /dump select(4, UnitAura("player", (GetSpellInfo(114664)))) or 0 /dump select(4, UnitAura("player", "Arcane Charge")) or 0 /dump ShadowUF.modules.auraPoints.spells["MAGE"]

  • _ForgeUser12889481 posted a comment Apr 18, 2014

    Dump: value=(GetSpellInfo(114664))

    [1]="Arcane Charge"

    Dump: value=select(4, UnitAura("player", (GetSpellInfo(114664)))) or 0

    [1]=0

    Dump: value=select(4, UnitAura("player", "Arcane Charge")) or 0

    [1]=0

    Dump: value=ShadowUF.modules.auraPoints.spells["MAGE"]

    [1]={

    max=4,

    name="Arcane Charge"

    }

    ------

    I replaced "return select(4, UnitAura("player", trackSpell.name)) or 0" with "return select(4, UnitDebuff("player", trackSpell.name)) or 0" and it's working... but I think I broke the rogue aura funktion because that aura is not a debuff...

    It's working with both spellids, 36032 and 114664


    Edited Apr 18, 2014
  • Shadowed103 posted a comment Apr 18, 2014

    Oh right, UnitAura returns only buffs by default.

    Try latest alpha, it should be fixed now.

  • _ForgeUser12889481 posted a comment Apr 18, 2014

    Still not working :/ I thought it is only my WoW or whatever.. I tried that on my laptop aswell with a fresh wow installation, it does not work there too...

    I experimented a bit...

    /dump select(4, UnitAura("player", 1, "HARMFUL")) or 0

    works but thats not good....

    /dump select(4, UnitAura("player", "Arcane Charge", "HARMFUL")) or 0

    does NOT work...

    /dump select(4, UnitAura("player", (select(1, GetSpellInfo(36032))), "HARMFUL")) or 0

    does not work either :/


    Edited Apr 18, 2014
  • _ForgeUser12889481 posted a comment Apr 18, 2014

    Your lastest alpha was not working too...

    I asked a friend to help me (he's a bit better in LUA than I am...) so he took a look at this and sent me back this line:

    return select(4, UnitAura("player", trackSpell.name, nil, trackSpell.filter)) or 0

    It is working!

    You (and me too) just forgot to set the rank parameter to "nil" instead of passing "HARMFUL" to the rank parameter, because WoWWiki says: "If the second parameter is a string, then the third parameter is the rank (which can be nil)"

    It's working with my mage and my rogue.


    Edited Apr 19, 2014
  • Shadowed103 posted a comment Apr 19, 2014

    Seems that whoever did the examples on wowpedia got it wrong.

    Thanks for the help debugging this.

  • Shadowed103 removed a tag New Apr 19, 2014
  • Shadowed103 added a tag Fixed Apr 19, 2014
  • Shadowed103 closed issue Apr 19, 2014

To post a comment, please login or register a new account.