Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Amumu auto E & W
- -- hsurk
- require "Utils"
- require "spell_damage"
- p = printtext
- local target
- local target2
- local range = myHero.range + GetDistance(GetMinBBox(myHero))
- local despair = false
- local autoW = false
- function Main()
- getTargets()
- if myHero.dead == 1 then despair = false end
- if target ~= nil then
- if CanCastSpell("E") then
- CastSpellTarget("E",target)
- end
- end
- if target2 ~= nil then
- if despair == false and CanCastSpell("W") then
- CastSpellTarget("W",myHero)
- autoW = true
- end
- else
- if despair == true and CanCastSpell("W") and autoW == true then
- CastSpellTarget("W",myHero)
- autoW = false
- end
- end
- end
- function getTargets()
- target = GetWeakEnemy("MAGIC", 200, "NEARMOUSE")
- target2 = GetWeakEnemy("MAGIC", 400, "NEARMOUSE")
- end
- function OnProcessSpell(unit, spell)
- if unit.team==myHero.team and GetDistance(unit,myHero)<10 then
- local s=spell.name
- if (s ~= nil) and string.find(s,"espair") ~= nil then
- if despair==false then despair=true
- elseif despair==true then despair=false end
- end
- end
- end
- function OnDraw()
- if myHero.dead == 0 then
- if CanCastSpell("Q") then
- CustomCircle(1100,6,3,myHero)
- end
- if CanCastSpell("R") then
- CustomCircle(550,10,1,myHero)
- end
- end
- end
- -- function OnCreateObj(obj)
- -- if obj.charName:find("espairpool_tar") then
- -- despair = obj
- -- else despair = nil end
- -- end
- -- function OnDeleteObj(obj)
- -- if obj.charName:find("espairpool_tar") then
- -- despair = nil
- -- end
- -- end
- SetTimerCallback("Main")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement