Example #1
0
        public ExecuteOrder(Common common)
        {
            SmartConcussiveShotMenu = ((MoreMenu)common.MenuConfig.MoreMenu).SmartConcussiveShotMenu;

            Abilities = (Abilities)common.Abilities;

            Player.OnExecuteOrder += OnExecuteOrder;
        }
Example #2
0
        public MoreMenu(Menu.Items.Menu menu)
        {
            var moreMenu = menu.CreateMenu("More");

            AutoComboMenu           = new AutoComboMenu(moreMenu);
            SmartArcaneBoltMenu     = new SmartArcaneBoltMenu(moreMenu);
            SmartConcussiveShotMenu = new SmartConcussiveShotMenu(moreMenu);
        }
Example #3
0
        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;
        }
Example #4
0
        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;
        }
Example #5
0
        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);
        }