//return asap to check the most amount of times static void SecondEChecker(Obj_AI_Hero target) { if (LissUtils.AutoSecondE() && LissUtils.isHealthy() && LissEMissile != null && Spells["E"].IsReady()) { if (Vector3.Distance(MissilePosition, target.ServerPosition) < Vector3.Distance(Player.ServerPosition, target.ServerPosition) && !LissUtils.PointUnderEnemyTurret(MissilePosition)) { Spells["E"].CastOnUnit(Player); return; } var Enemiesatpoint = Utility.GetEnemiesInRange(LissEMissile.Position, Spells["R"].Range); var enemiesatpointR = Enemiesatpoint.Count; if ((enemiesatpointR >= Config.Item("Combo.ecountR").GetValue <Slider>().Value&& SpellSlot.R.IsReady()) || (Enemiesatpoint.Any(e => e.IsKillableFromPoint(LissEMissile.Position) && Vector3.Distance(LissEMissile.Position, e.ServerPosition) < Vector3.Distance(Player.ServerPosition, e.ServerPosition)))) { if (LissUtils.PointUnderEnemyTurret(LissEMissile.Position) && LissUtils.Active("Misc.DontETurret")) { return; } Spells["E"].CastOnUnit(Player); return; } var enemiesatpointW = Utility.CountEnemiesInRange(LissEMissile.Position, Spells["W"].Range); if (enemiesatpointW >= Config.Item("Combo.ecountW").GetValue <Slider>().Value&& SpellSlot.W.IsReady()) { if (LissUtils.PointUnderEnemyTurret(LissEMissile.Position) && LissUtils.Active("Misc.DontETurret")) { return; } Spells["E"].CastOnUnit(Player); return; } } }
//return asap to check the most amount of times private static void SecondEChecker(AIHeroClient target) { if (LissUtils.AutoSecondE() && LissUtils.isHealthy() && LissEMissile != null && Spells["E"].IsReady()) { if (Vector2.Distance(MissilePosition, target.ServerPosition.To2D()) < Vector3.Distance(Player.ServerPosition, target.ServerPosition) && !LissUtils.PointUnderEnemyTurret(MissilePosition) && Vector3.Distance(target.ServerPosition, LissEMissile.EndPosition) > Vector3.Distance(Player.ServerPosition, target.ServerPosition)) { Spells["E"].CastOnUnit(Player); return; } var Enemiesatpoint = LissEMissile.Position.GetEnemiesInRange(Spells["R"].Range); var enemiesatpointR = Enemiesatpoint.Count; if ((enemiesatpointR >= getSliderItem(comboMenu, "Combo.ecountR") && SpellSlot.R.IsReady()) || Enemiesatpoint.Any( e => e.IsKillableFromPoint(LissEMissile.Position) && Vector3.Distance(LissEMissile.Position, e.ServerPosition) < Vector3.Distance(Player.ServerPosition, e.ServerPosition))) { if (LissUtils.PointUnderEnemyTurret(MissilePosition) && getCheckBoxItem(miscMenu, "Misc.DontETurret")) { return; } Spells["E"].CastOnUnit(Player); return; } var enemiesatpointW = LissEMissile.Position.CountEnemiesInRange(Spells["W"].Range); if (enemiesatpointW >= getSliderItem(comboMenu, "Combo.ecountW") && SpellSlot.W.IsReady()) { if (LissUtils.PointUnderEnemyTurret(MissilePosition) && getCheckBoxItem(miscMenu, "Misc.DontETurret")) { return; } Spells["E"].CastOnUnit(Player); } } }