Advertisement
N7Reny

Blue Eagle Garen Auto Ult

Jul 19th, 2015
667
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.98 KB | None | 0 0
  1. Config = scriptConfig("Garen", "Garen")
  2. Config.addParam("R", "Use R Automatic", SCRIPT_PARAM_ONOFF, true)
  3. PrintChat("Blue Eagle Garen 0.1 by N7Reny")
  4.  
  5. OnLoop(function(myHero)
  6.  
  7.  
  8. Target = GetTarget(675)
  9.  if ValidTarget(Target, 675) then
  10. MHp = GetMaxHP(Target)
  11. CHp = GetCurrentHP(Target)
  12. Dmg = MHp - CHp
  13.  
  14.  
  15. if Config.R then
  16. if CanUseSpell(myHero, _R) == READY then
  17.   if ValidTarget(Target, GetCastRange(myHero, _R)) and CalcDamage(myHero, Target, 0, DemacianJ(Dmg)) > GetCurrentHP(Target) then
  18.  CastTargetSpell(Target, _R)
  19.  end
  20. end
  21. end
  22. end
  23. end)
  24.  
  25. function DemacianJ(Dmg)
  26.         if GetCastLevel(GetMyHero(), _R) < 1 then
  27.                 return 0
  28.         end
  29.         if GetCastLevel(GetMyHero(), _R) == 1 then
  30.                 return 175 + (Dmg / 3.5)
  31.         end
  32.         if GetCastLevel(GetMyHero(), _R) == 2 then
  33.                 return 350 + (Dmg / 3)
  34.         end
  35.         if GetCastLevel(GetMyHero(), _R) == 3 then
  36.                 return 525 + (Dmg / 2.5)
  37.         end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement