Haleth / FreeUI

A World of Warcraft user interface
http://www.wowinterface.com/downloads/info17892-FreeUI.html
54 stars 29 forks source link

Incorrect displaying of combo points for rogue and feral druid #104

Closed cbb356 closed 8 years ago

cbb356 commented 8 years ago

Version of WOW: 7.0.3 (22267) 64-bit PTR and live Version of FreeUI: 9.0.0 Description: CP for rogue and feral druid characters are displayed incorrect. Receiving and spending CP aren't displayed on current target. When target is changed CP, numbers is correct (2nd attach file). But on second target CP quantity don't change again. See attached files wowscrnshot_072016_122036 wowscrnshot_072016_130012 wowscrnshot_072016_130108

camsu commented 8 years ago

This fixed it for me, go in the FreeUI folder in ur addons, then ścripts > combo, and change the LUA text at the bottom to this:

combo:RegisterEvent("PLAYER_TARGET_CHANGED") combo:RegisterEvent("UNIT_POWER") combo:RegisterEvent("UNIT_EXITED_VEHICLE") combo:SetScript("OnEvent", function(self, event, unit) if event == "PLAYER_TARGET_CHANGED" then UpdatePoints() elseif event == "UNIT_POWER" then if unit == "player" or unit == "vehicle" then UpdatePoints() end elseif event == "UNIT_EXITED_VEHICLE" then if unit == "player" then UpdatePoints() end end end)

cbb356 commented 8 years ago

it is working :)