public static void OnAfterAttack(object sender, AfterAttackEventArgs args) { if (args.Target == null || !args.Target.IsValidTarget()) { return; } if (Orbwalker.ActiveMode == OrbwalkerMode.Combo && args.Target is AIHeroClient && mainMenu["Combo"].GetValue <MenuBool>("Quse").Enabled&& !IsBurrowed()) { if (QUnburrowed.Cast()) { Orbwalker.ResetAutoAttackTimer(); } } if (Orbwalker.ActiveMode == OrbwalkerMode.Harass && args.Target is AIHeroClient && mainMenu["Harass"].GetValue <MenuBool>("Quse").Enabled&& !IsBurrowed()) { if (QUnburrowed.Cast()) { Orbwalker.ResetAutoAttackTimer(); } } //var Etarget = EUnburrowed.GetTarget(); //if (Orbwalker.ActiveMode == OrbwalkerMode.Combo && args.Target is AIHeroClient && // mainMenu["Combo"].GetValue<MenuBool>("Euse").Enabled && !IsBurrowed()&&GameObjects.Player.ManaPercent==100) //{ // EUnburrowed.Cast(Etarget); //} }
private static void Jungle() { var useQUnburrowed = mainMenu["Jungle"].GetValue <MenuBool>("Quse").Enabled; var autoSwitch = mainMenu["Jungle"].GetValue <MenuBool>("Wuse").Enabled; var useE = mainMenu["Jungle"].GetValue <MenuBool>("Euse").Enabled; var useEMax = mainMenu["Jungle"].GetValue <MenuBool>("Eusemax").Enabled; var useQburrowed = mainMenu["Jungle"].GetValue <MenuBool>("Qburroweduse").Enabled; var mobs = GameObjects.Jungle.Where(x => x.IsValidTarget(QUnburrowed.Range)).ToList(); if (mobs == null || (mobs != null && mobs.Count == 0)) { return; } var mob = mobs[0]; if (IsBurrowed()) { if (Qburrowed.IsReady() && useQburrowed) { Qburrowed.Cast(mob.Position); } if (!QUnburrowed.IsReady() && Wburrowed.IsReady() && autoSwitch) { Wburrowed.Cast(); } } else { if (QUnburrowed.IsReady() && useQUnburrowed && ObjectManager.Player.Distance(mob.Position) < EUnburrowed.Range) { QUnburrowed.Cast(); } if (EUnburrowed.IsReady() && ((useE && !useEMax) || (useE && useEMax && GameObjects.Player.ManaPercent == 100))) { EUnburrowed.Cast(mob); } if (!QUnburrowed.IsReady() && !EUnburrowed.IsReady() && WUnburrowed.IsReady() && autoSwitch) { WUnburrowed.Cast(); } } }