function useQ(target)
if CanUseSpell(myHero,_Q) == READY and GetCurrentMana(myHero) <= GetMaxMana(myHero) then
CastSpell(_Q)
end
function useW(target)
if GetCurrentMana(myHero) < GetMaxMana(myHero) then
CastSpell(_W)
elseif GetCurrentMana(myHero) == GetMaxMana(myHero) then
CastSpell(_Q)
end
end
function useE(target)
if GetDistance(target) < RengarE.range then
local EPred = GetPredictionForPlayer(GetOrigin(myHero),target,GetMoveSpeed(target),RengarE.speed,RengarE.delay*1000,RengarE.range,RengarE.width,true,false)
if GetCurrentMana(myHero) < GetMaxMana(myHero) then
-- local EPred = GetPredictionForPlayer(GetOrigin(myHero),target,GetMoveSpeed(target),RengarE.speed,RengarE.delay*1000,RengarE.range,RengarE.width,true,false)
if EPred.HitChance == 1 then
CastSkillShot(_E, EPred.PredPos)
end
elseif GetCurrentMana(myHero) == GetMaxMana(myHero) and GetDistance(target, myHero) >= 525 then
if EPred.HitChance == 1 then
CastSkillShot(_E, EPred.PredPos)
elseif GetCurrentMana(myHero) == GetMaxMana(myHero) and GetDistance(target, myHero) < 525 then
CastSpell(_Q)
end
end
end
end
end
then on combo
unction Combo()
if Mode() == "Combo" then
if GetItemSlot(myHero, 3142) >= 1 and ValidTarget(target, 1000) then
if CanUseSpell(myHero, GetItemSlot(myHero, 3142)) == READY then
CastSpell(GetItemSlot(myHero, 3142))
end
end
if CanUseSpell(myHero,_Q) == READY and GetDistance(target, myHero) <= 500 then
if ValidTarget(target, GetRange(myHero)+GetHitBox(myHero)+50) then
useQ(target)
end
end
if CanUseSpell(myHero,_E) == READY then
if ValidTarget(target, RengarE.range) then
useE(target)
end
end
if CanUseSpell(myHero,_W) == READY then
if ValidTarget(target,GetHitBox(myHero)+350) then
useW(target)
end
end
if Ready(Smite) then
for i, enemy in pairs(GetEnemyHeroes()) do
if ValidTarget(target, 600) then
CastTargetSpell(enemy, Smite)
end
end
end
end
end
end