private static void HarassEvent() { if (HarassOption.HasEnouguMana()) { var target = HarassOption.GetTarget(Q.Range); if (target.IsValidTarget(Q.Range)) { if (HarassOption.UseQ && Q.IsReady()) { var qPred = Q.GetPrediction(target); if (qPred.Hitchance >= HitChance.High) { Q.Cast(qPred.CastPosition); } } if (HarassOption.UseE && E.IsReady() && Variables.GameTimeTickCount - lastETime > 500 + Game.Ping) { if (HarassOption.GetBool("HarassESlow").Enabled&& target.IsValidTarget(E.Range) && target.Buffs.Any(a => a.Name.ToLower().Contains("kalistaexpungemarker"))) { var EKillMinion = GameObjects.Minions.Where(x => x.IsValidTarget(Me.GetRealAutoAttackRange(x))) .FirstOrDefault(x => x.Buffs.Any(a => a.Name.ToLower().Contains("kalistaexpungemarker")) && x.DistanceToPlayer() <= E.Range && x.Health < E.GetKalistaRealDamage(x)); if (EKillMinion != null && EKillMinion.IsValidTarget(E.Range) && target.IsValidTarget(E.Range)) { E.Cast(); } } if (HarassOption.GetSliderBool("HarassELeave").Enabled&& target.DistanceToPlayer() >= 800 && target.Buffs.Find(a => a.Name.ToLower().Contains("kalistaexpungemarker")).Count >= HarassOption.GetSliderBool("HarassELeave").Value) { E.Cast(); } } } } }