public ExecuteOrder(Common common) { SmartConcussiveShotMenu = ((MoreMenu)common.MenuConfig.MoreMenu).SmartConcussiveShotMenu; Abilities = (Abilities)common.Abilities; Player.OnExecuteOrder += OnExecuteOrder; }
public MoreMenu(Menu.Items.Menu menu) { var moreMenu = menu.CreateMenu("More"); AutoComboMenu = new AutoComboMenu(moreMenu); SmartArcaneBoltMenu = new SmartArcaneBoltMenu(moreMenu); SmartConcussiveShotMenu = new SmartConcussiveShotMenu(moreMenu); }
public Combo(Common common) : base(common.MenuConfig) { SpellsMenu = common.MenuConfig.ComboMenu.SpellsMenu; ItemsMenu = common.MenuConfig.ComboMenu.ItemsMenu; MysticFlareMenu = ((ComboMenu)common.MenuConfig.ComboMenu).MysticFlareMenu; BlinkDaggerMenu = common.MenuConfig.ComboMenu.BlinkDaggerMenu; AeonDiskMenu = common.MenuConfig.ComboMenu.AeonDiskMenu; WithMuteMenu = common.MenuConfig.ComboMenu.WithMuteMenu; SmartConcussiveShotMenu = ((MoreMenu)common.MenuConfig.MoreMenu).SmartConcussiveShotMenu; BladeMailMenu = common.MenuConfig.BladeMailMenu; Abilities = (Abilities)common.Abilities; TargetSelector = common.TargetSelector; LinkenBreaker = common.LinkenBreaker; }
public AutoCombo(Common common) { ComboMenu = common.MenuConfig.ComboMenu; AeonDiskMenu = common.MenuConfig.ComboMenu.AeonDiskMenu; AutoComboMenu = ((MoreMenu)common.MenuConfig.MoreMenu).AutoComboMenu; SmartConcussiveShotMenu = ((MoreMenu)common.MenuConfig.MoreMenu).SmartConcussiveShotMenu; BladeMailMenu = common.MenuConfig.BladeMailMenu; Abilities = (Abilities)common.Abilities; LinkenBreaker = common.LinkenBreaker; KillSteal = common.KillSteal; if (AutoComboMenu.EnableItem) { RunAsync(); } AutoComboMenu.EnableItem.Changed += EnableChanged; }
public static bool ConcussiveShotTarget(SmartConcussiveShotMenu smartConcussiveShotMenu, Unit target, Hero targetHit) { if (!smartConcussiveShotMenu.UseOnlyTargetItem) { return(true); } if (targetHit == null) { return(false); } if (target.Handle == targetHit.Handle) { return(true); } if (target.Distance2D(targetHit) < 200) { return(true); } return(false); }