Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Lee:KillSteal()
- if not self.menu.ks.enable:get() and (not self.menu.combo.rkick:get() or myHero.spellbook:CanUseSpell(3) ~= 0) then return end
- for i, enemy in ipairs(enemy) do
- if self:ValidTarget(enemy) and enemy.isTargetable then
- local hp = enemy.health
- local d = GetDistanceSqr(enemy)
- local q = myHero.spellbook:CanUseSpell(0) == 0
- local e = myHero.spellbook:CanUseSpell(2) == 0
- local r = myHero.spellbook:CanUseSpell(3) == 0
- local qd = self:Q3Dmg(enemy)
- local qd1 = self:Q1Dmg(enemy)
- local ed = self:EDmg(enemy)
- local rd = self:RDmg(enemy)
- if self.menu.combo.rkick:get() and r and d <= 350 ^ 2 and not self.menu.keys.insec:get() then
- self:CountEnemiesInR(enemy.boundingRadius * 2, myHero, Vector(enemy):extended(myHero, GetDistance(enemy) - 800), enemy, self.menu.combo.rkickhit:get())
- end
- if self.menu.ks.enable:get() then
- if self.menu.ks.q3:get() and not self.menu.ks.q2:get() and not self.menu.ks.q1:get() then
- if q and self:FirstSpell(0) and hp <= qd and d <= (1100 * 1100) then
- self:CastQ(enemy)
- elseif q and hp <= qd1 and enemy.buffManager:HasBuff('BlindMonkQOne') and not self:FirstSpell(0) and d <= 1300 ^ 2 then
- myHero.spellbook:CastSpell(0, myHero.networkId)
- end
- elseif not self.menu.ks.q3:get() and self.menu.ks.q2:get() and q and hp < qd1 and enemy.buffManager:HasBuff('BlindMonkQOne') and not self:FirstSpell(0) and d < (1300 * 1300) then
- myHero.spellbook:CastSpell(0, myHero.networkId)
- elseif not self.menu.ks.q3:get() and self.menu.ks.q1:get() and q and hp < qd1 and self:FirstSpell(0) and d < (1100 * 1100) then
- self:CastQ(enemy)
- elseif self.menu.ks.e:get() and e and self:FirstSpell(2) and hp < ed and d < (410 * 410) then
- myHero.spellbook:CastSpell(2, myHero.networkId)
- elseif self.menu.ks.r:get() and r and d <= (375 + enemy.boundingRadius) ^ 2 and hp <= rd then
- myHero.spellbook:CastSpell(3, enemy.networkId)
- end
- for i, enemy2 in ipairs(enemy) do
- if self:ValidTarget(enemy2) then
- if enemy2 ~= enemy and self:GetDistanceSqr(enemy, enemy2) <= 1100 and self:GetDistanceSqr(myHero, enemy2) <= 375 ^ 2 then
- if rd < hp then
- local input = {delay = 0.25, speed = 1500, width = enemy2.boundingRadius, range = 1100,type = "linear",}
- local pred = _G.Prediction.GetPrediction(enemy, input, enemy2)
- if pred and pred.castPosition then
- myHero.spellbook:CastSpell(3, enemy2.networkId)
- end
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement