-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathFizz.lua
More file actions
33 lines (25 loc) · 1.26 KB
/
Fizz.lua
File metadata and controls
33 lines (25 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Config = scriptConfig("Fizz", "Fizz:")
Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
OnLoop(function(myHero)
if IWalkConfig.Combo then
local target = GetTarget(1275, DAMAGE_MAGIC)
if ValidTarget(target, 1275) then
local RPred = GetPredictionForPlayer(GetMyHeroPos(),target,GetMoveSpeed(target),1350,250,1275,120,false,true)
if CanUseSpell(myHero, _R) == READY and RPred.HitChance == 1 and Config.R then
CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
end
if CanUseSpell(myHero, _W) == READY and IsInDistance(target, 300) and Config.W then
CastSpell(_W)
end
if CanUseSpell(myHero, _Q) == READY and IsInDistance(target, 550) and Config.Q then
CastTargetSpell(target, _Q)
end
if CanUseSpell(myHero, _E) == READY and IsInDistance(target, 800) and Config.E then
CastTargetSpell(target, _E)
end
end
end
end)