Untitled


SUBMITTED BY: Guest

DATE: Oct. 30, 2014, 1:55 p.m.

FORMAT: Text only

SIZE: 1.2 kB

HITS: 796

  1. function CastQ(unit)
  2. -- Prodiction --
  3. if unit ~= nil and BrandConfig.mode == 2 and BrandConfig.combo then
  4. if Qready then
  5. local pos, info = Prodiction.GetPrediction(unit, Qrange, Qspeed, Qdelay, Qwidth)
  6. local coll = Collision(Qrange, Qspeed, Qdelay, Qwidth)
  7. if not coll:GetMinionCollision(pos, myHero) then
  8. if pos then
  9. CastSpell(_Q, pos.x, pos.z)
  10. end
  11. end
  12. end
  13. end
  14. -- VPrediction --
  15. if unit ~= nil and BrandConfig.mode == 1 and BrandConfig.combo then
  16. if Qready then
  17. local CastPosition, HitChance, Pos = VP:GetLineCastPosition(unit, Edelay, Ewidth, Erange, Espeed, myHero, true)
  18. if HitChance >= 2 and GetDistance(CastPosition) < Qrange then
  19. CastSpell(_Q, CastPosition.x, CastPosition.z)
  20. end
  21. end
  22. end

comments powered by Disqus