Skip to content

Commit

Permalink
Merge pull request #118 from Miikaa/patch-1
Browse files Browse the repository at this point in the history
Fixing combo function for rogues
  • Loading branch information
Haleth committed Aug 27, 2016
2 parents 7532a1d + 7908a98 commit 34d4761
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FreeUI/scripts/combo.lua
Expand Up @@ -30,12 +30,12 @@ local function UpdatePoints()
end

combo:RegisterEvent("PLAYER_TARGET_CHANGED")
combo:RegisterEvent("UNIT_COMBO_POINTS")
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_COMBO_POINTS" then
elseif event == "UNIT_POWER" then
if unit == "player" or unit == "vehicle" then
UpdatePoints()
end
Expand All @@ -46,4 +46,4 @@ combo:SetScript("OnEvent", function(self, event, unit)
end
end)

ComboFrame:UnregisterAllEvents()
ComboFrame:UnregisterAllEvents()

0 comments on commit 34d4761

Please sign in to comment.