Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = scriptConfig("Garen", "Garen")
- Config.addParam("R", "Use R Automatic", SCRIPT_PARAM_ONOFF, true)
- PrintChat("Blue Eagle Garen 0.1 by N7Reny")
- OnLoop(function(myHero)
- Target = GetTarget(675)
- if ValidTarget(Target, 675) then
- MHp = GetMaxHP(Target)
- CHp = GetCurrentHP(Target)
- Dmg = MHp - CHp
- if Config.R then
- if CanUseSpell(myHero, _R) == READY then
- if ValidTarget(Target, GetCastRange(myHero, _R)) and CalcDamage(myHero, Target, 0, DemacianJ(Dmg)) > GetCurrentHP(Target) then
- CastTargetSpell(Target, _R)
- end
- end
- end
- end
- end)
- function DemacianJ(Dmg)
- if GetCastLevel(GetMyHero(), _R) < 1 then
- return 0
- end
- if GetCastLevel(GetMyHero(), _R) == 1 then
- return 175 + (Dmg / 3.5)
- end
- if GetCastLevel(GetMyHero(), _R) == 2 then
- return 350 + (Dmg / 3)
- end
- if GetCastLevel(GetMyHero(), _R) == 3 then
- return 525 + (Dmg / 2.5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement