UnitPower, combo points and vehicles
Code:
UnitPower("vehicle", SPELL_POWER_COMBO_POINTS) Issue is present on live (WoD) clients too. |
This what I was doing in Roth UI since WoD where they introduced UnitPowerType 4 = Combo_Points.
Could not use the old method and had to use Unit_Power. https://github.com/zorker/rothui/com...omboPoints.lua https://github.com/zorker/rothui/com...ec7e1bf8cc5c2b I tested the vehicle fight outside of the Malygos instance. Had no combo point issues. Lua Code:
Maybe some later updated killed it. Have not tried it in some time. |
I tested it yesterday, UnitPower returned 0 regardless of game version.
|
Isn't it easier to show/hide class power bar based on class/spec behaviors, triggered by:
rather than checking the UnitPowerType? |
It has been an "issue" since WoD, whenever they shifted CP to the player. vehicle was weird and you still needed to use GetComboPoints for it as they were only on the target. Not sure when zork's code would have actually worked, his commit is after the issue came up in irc and people switched back to checking UnitHasVehicleUI + GetComboPoints after the initial adoption of using UnitPower.
(bit late, Stanzilla linked me :p ) |
Quote:
|
http://us.battle.net/wow/en/forum/to...16?page=33#649
everything about that fight seems broken atm. I tried GetComboPoints("player", "target") => 0 GetComboPoints("vehicle", "target") => 0 UnitPower("vehicle", SPELL_POWER_COMBO_POINTS) => 0 UnitPower("player", SPELL_POWER_COMBO_POINTS) => 0 all the time. |
Might have been broken further then in the later builds, this worked when I was working with the API:
https://github.com/haste/oUF/pull/26...cf24efa4bd4R98 |
Have you guys tried UnitPower(unit, ALTERNATE_POWER_INDEX)? Or that would just point to the dragon's energy bar?
|
Quote:
|
Don't know if related at all, but for the Scrolling Combat Text on Self,
combo points are now categorized under floatingCombatTextEnergyGains instead of floatingCombatTextComboPoints Did they rework the combo points everywhere? http://us.battle.net/wow/en/forum/topic/20745236385#10 |
The fight is just broken imo, the dps generator does not build CP, when I use the heal
both GetComboPoints("vehicle", "vehicle") and GetComboPoints("vehicle", "target") return the correct number, the others still don't. |
Quote:
You can run GetComboPoints('vehicle') and it'll work just fine. Also, it's not just Malygos, it's also other (if not all) vehicles, the daily at Wyrmrest Temple is "broken" as well. |
All times are GMT -6. The time now is 09:35 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI