Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. function LastHit()
  2. for _, Minion in pairs(GetMinions(200)) do
  3. if Config.Key.LastHit:Value() and myHero.mana >= Config.LastHit.Energy:Value() then
  4. if Config.LastHit.Q.Enabled:Value() and getdmg("Q", Minion, myHero) > Minion.health then
  5. if CanUseSpell(myHero, _Q) and IsValidTarget(Minion, GetRange(_Q), false, myHero.pos) then
  6. Control.CastSpell(HK_Q, Minion.pos)
  7. end
  8. end
  9. if Config.LastHit.E.Enabled:Value() and getdmg("E", Minion, myHero) > Minion.health then
  10. if CanUseSpell(myHero, _E) and IsValidTarget(Minion, GetRange(_E), false, myHero.pos) then
  11. Control.CastSpell(HK_E)
  12. end
  13. end
  14. end
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement