Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function LastHit()
- for _, Minion in pairs(GetMinions(200)) do
- if Config.Key.LastHit:Value() and myHero.mana >= Config.LastHit.Energy:Value() then
- if Config.LastHit.Q.Enabled:Value() and getdmg("Q", Minion, myHero) > Minion.health then
- if CanUseSpell(myHero, _Q) and IsValidTarget(Minion, GetRange(_Q), false, myHero.pos) then
- Control.CastSpell(HK_Q, Minion.pos)
- end
- end
- if Config.LastHit.E.Enabled:Value() and getdmg("E", Minion, myHero) > Minion.health then
- if CanUseSpell(myHero, _E) and IsValidTarget(Minion, GetRange(_E), false, myHero.pos) then
- Control.CastSpell(HK_E)
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement