private void RLogicDuel(bool q, bool e) { try { foreach (var t in GameObjects.EnemyHeroes) { if (UltimateManager.CheckDuel(t, CalcComboDamage(t, q, e, true))) { if (RLogic(t, R.GetHitChance("combo"), 1, q, e)) { break; } } } } catch (Exception ex) { Global.Logger.AddItem(new LogItem(ex)); } }
private bool RLogicDuel(bool q, bool e, bool simulated = false) { try { if (!R.Instance.Name.Equals("ViktorChaosStorm", StringComparison.OrdinalIgnoreCase)) { return(false); } if ( GameObjects.EnemyHeroes.Where(t => UltimateManager.CheckDuel(t, CalcComboDamage(t, q, e, true))) .Any(t => RLogic(t, 1, q, e, simulated))) { return(true); } } catch (Exception ex) { Global.Logger.AddItem(new LogItem(ex)); } return(false); }
private void RLogicDuel(HitChance hitChance, bool q, bool w, bool e, bool face = true) { try { foreach (var t in Targets) { if ((!face || t.IsFacing(Player)) && R.CanCast(t)) { if (UltimateManager.CheckDuel(t, CalcComboDamage(t, q, w, e, true))) { if (RLogic(hitChance, 1, q, w, e)) { break; } } } } } catch (Exception ex) { Global.Logger.AddItem(new LogItem(ex)); } }