Skip to content

Instantly share code, notes, and snippets.

@TSM-EVO
Created August 14, 2014 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TSM-EVO/128febee1deaf95b5f3d to your computer and use it in GitHub Desktop.
Save TSM-EVO/128febee1deaf95b5f3d to your computer and use it in GitHub Desktop.
Simple.Kassadin
Simple.Kassadin = {
EHero =
function(target)
for target in Y.iter_enemies() do
if ValidTarget(target.__original) then
local E = {range = 700, width = 100, speed = 1000, delay = .25, minions = false}
local CastPosition, HitChance, Targets = YP:GetLineCastPosition(target, E.delay, E.width, E.range, E.speed, myHero, E.minions)
if HitChance >= 2 then
local x, y, z = CastPosition.x, CastPosition.y, CastPosition.z
CastSpellXYZ('E', x, y, z)
end
end
end
end,
QHero =
function(target)
for target in Y.iter_enemies() do
if ValidTarget(target.__original) and GetDistance(target)<650 then
CastSpellTarget('Q',target)
end
end
end,
OnTick = function(target)
-- q 650, e 700 , w 200
if target and (yayo.Config.Mixed or yayo.Config.LaneClear or yayo.Config.AutoCarry) then
Simple.Kassadin.EHero(target)
Simple.Kassadin.QHero(target)
end
end,
AfterAttack = function(target)
if ValidTarget(target) and (yayo.Config.AutoCarry or yayo.Config.LaneClear or yayo.Config.Mixed) then
CastSpellTarget('W',myHero)
end
end,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment