private static void ExecuteAALogic(Obj_AI_Base sender, Obj_AI_Base target) { var QEnabled = Q.IsEnabledAndReady(Variables.Orbwalker.ActiveMode); if (QEnabled) { switch (Variables.Orbwalker.ActiveMode) { case Orbwalking.OrbwalkingMode.Combo: TumbleMethods.PreCastTumble(target); break; case Orbwalking.OrbwalkingMode.Mixed: if (target is Obj_AI_Hero) { if (MenuExtensions.GetItemValue <bool>("dz191.vhr.mixed.q.2wstacks") && !(target as Obj_AI_Hero).Has2WStacks()) { return; } TumbleMethods.PreCastTumble(target); } break; case Orbwalking.OrbwalkingMode.LaneClear: case Orbwalking.OrbwalkingMode.LastHit: TumbleMethods.HandleFarmTumble(target); break; } } if (MenuExtensions.GetItemValue <bool>("dz191.vhr.mixed.ethird")) { if (target is Obj_AI_Hero) { var tg = target as Obj_AI_Hero; if (Variables.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed && tg.GetWBuff() != null && tg.GetWBuff().Count == 1 && tg.IsValidTarget(Variables.spells[SpellSlot.E].Range)) { Variables.spells[SpellSlot.E].CastOnUnit(tg); } } } foreach (var module in Variables.moduleList.Where(module => module.GetModuleType() == ModuleType.OnAfterAA && module.ShouldGetExecuted())) { module.OnExecute(); } }
private static void ExecuteAALogic(Obj_AI_Base sender, Obj_AI_Base target) { var QEnabled = Q.IsEnabledAndReady(PortAIO.OrbwalkerManager.GetActiveMode()); if (QEnabled) { if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { TumbleMethods.PreCastTumble(target); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass)) { if (target is AIHeroClient) { TumbleMethods.PreCastTumble(target); } } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit)) { TumbleMethods.HandleFarmTumble(target); } } if (MenuGenerator.harassMenu["dz191.vhr.mixed.ethird"].Cast <CheckBox>().CurrentValue) { if (target is AIHeroClient) { var tg = target as AIHeroClient; if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) && tg.GetWBuff() != null && tg.GetWBuff().Count == 1 && tg.LSIsValidTarget(Variables.spells[SpellSlot.E].Range)) { Variables.spells[SpellSlot.E].CastOnUnit(tg); } } } foreach (var module in Variables.moduleList.Where(module => module.GetModuleType() == ModuleType.OnAfterAA && module.ShouldGetExecuted())) { module.OnExecute(); } }