We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I hope the Hunter "execute" Kill Shot can be added to the base addon.
Kill Shot
I edited my local copy with the addition of
AddSpellName("KillShot", 61006, 61005, 53351)
function ns.KillShotCheck(self, event, unit) if UnitExists("target") and not UnitIsFriend("player", "target") then local h = UnitHealth("target") local hm = UnitHealthMax("target") local killshotID = ns.findHighestRank("KillShot") if h > 0 and (h/hm < 0.2 or IsUsableSpell(killshotID)) then f:Activate("KillShot", "Health", 10) else f:Deactivate("KillShot", "Health") end else f:Deactivate("KillShot", "Health") end end
and
if ns.findHighestRank("KillShot") then self:RegisterEvent("PLAYER_TARGET_CHANGED") self:RegisterUnitEvent("UNIT_HEALTH", "target") self.PLAYER_TARGET_CHANGED = ns.KillShotCheck self.UNIT_HEALTH = ns.KillShotCheck else self:UnregisterEvent("PLAYER_TARGET_CHANGED") self:UnregisterEvent("UNIT_HEALTH") end
added to ns.configs.HUNTER function.
ns.configs.HUNTER
Tested it out seems to work fine.
The text was updated successfully, but these errors were encountered:
add hunter kill shot to activations, closes rgd87#22
c104091
3e98fa7
No branches or pull requests
I hope the Hunter "execute"
Kill Shot
can be added to the base addon.I edited my local copy with the addition of
and
added to
ns.configs.HUNTER
function.Tested it out seems to work fine.
The text was updated successfully, but these errors were encountered: