Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue Holy Power, Chi #57

Open
leonardocola opened this issue Jul 19, 2020 · 0 comments
Open

Issue Holy Power, Chi #57

leonardocola opened this issue Jul 19, 2020 · 0 comments

Comments

@leonardocola
Copy link

Hello!

I have been using TidyPlates for many years and I love it !. but I went back to playing and realized that Chi and HolyPower was not showing on the target, I made a simple modification in the code as below:


File: ComboPointWidget.lua


38 local points = UnitPower ("player", 12)
39 local maxPoints = UnitPowerMax ("player", 12)


So I added a new paladin function


local function GetHolyPower ()
if UnitCanAttack ("player", "target") then

local points = UnitPower ("player", 9)
local maxPoints = UnitPowerMax ("player", 9)

return points, maxPoints

end
end


elseif PlayerClass == "PALADIN" then
GetResourceOnTarget = GetHolyPower


I will create a pull request.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant