private static void CastSpell(Spell.Skillshot qwer, Obj_AI_Base target) { var predInput2 = new PredictionInput { Speed = qwer.Speed, Delay = qwer.CastDelay, Range = qwer.Range, From = Player.Instance.ServerPosition, Radius = qwer.Width, Unit = target, Type = SkillshotType.SkillshotLine }; var poutput2 = P.GetPrediction(predInput2); var Standard = qwer.GetPrediction(target); if (poutput2.Hitchance >= HitChance.High) { qwer.Cast(poutput2.CastPosition); } else if (Standard.HitChance >= EloBuddy.SDK.Enumerations.HitChance.Medium) { qwer.Cast(P.GetPrediction(target, 150).CastPosition); } }
public static void CastSpell(Spell.Skillshot qwer, Obj_AI_Base target) { var predInput2 = new PredictionInput { Speed = qwer.Speed, Delay = qwer.CastDelay, Range = qwer.Range, From = Player.Instance.ServerPosition, Radius = qwer.Width, Unit = target, Type = SkillshotType.SkillshotLine }; var poutput2 = P.GetPrediction(predInput2); if (poutput2.Hitchance >= HitChance.Low) { qwer.Cast(poutput2.CastPosition); } }