Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local lastaa = 0
- local anim = 0
- local wind = 0
- menu = MenuConfig("gso_twitch", "gso twitch")
- menu:KeyBinding("combo", "Combo", 32)
- OnProcessSpellAttack(function(unit, aa)
- if unit == myHero then
- anim = aa.animationTime * 850
- wind = aa.windUpTime * 850
- lastaa = GetTickCount()
- end
- end)
- OnTick(function()
- if menu.combo:Value() then
- local t = nil
- local num = 10000
- local r = myHero.range + myHero.boundingRadius
- for _, enemy in pairs(GetEnemyHeroes()) do
- if ValidTarget(enemy, r + enemy.boundingRadius) then
- local arm = enemy.armor
- local hp = enemy.health * (arm/(arm+100))
- if hp < num then
- num = hp
- t = enemy
- end
- end
- end
- if t ~= nil then
- if GetTickCount() > lastaa + anim then
- AttackUnit(t)
- elseif GetTickCount() > lastaa + wind then
- MoveToXYZ(GetMousePos())
- end
- elseif GetTickCount() > lastaa + wind then
- MoveToXYZ(GetMousePos())
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement