Exemplo n.º 1
0
        public Farm(Common common)
        {
            FarmMenu = common.MenuConfig.FarmMenu;

            Abilities = (Abilities)common.Abilities;

            var context = DivineService.Context;
            var parent  = context.Orbwalker.Settings.Factory.Parent;

            AutoAttackModeConfig = new AutoAttackModeConfig(parent, "SkywrathMage Farm Mode", 0, true, false, false, false, true, true);
            Selector             = new AutoAttackModeSelector(Owner.Base, context.TargetSelector, AutoAttackModeConfig);

            AutoAttackModeConfig.Active.Item.ShowItem           = false;
            AutoAttackModeConfig.Key.Item.ShowItem              = false;
            AutoAttackModeConfig.Deny.Item.ShowItem             = false;
            AutoAttackModeConfig.Farm.Item.ShowItem             = false;
            AutoAttackModeConfig.Hero.Item.ShowItem             = false;
            AutoAttackModeConfig.Building.Item.ShowItem         = false;
            AutoAttackModeConfig.Neutral.Item.ShowItem          = false;
            AutoAttackModeConfig.Creep.Item.ShowItem            = false;
            AutoAttackModeConfig.BonusMeleeRange.Item.ShowItem  = false;
            AutoAttackModeConfig.BonusRangedRange.Item.ShowItem = false;

            FarmMenu.FarmHotkey.Action            += FarmHotkeyAction;
            FarmMenu.HeroHarrasItem.ValueChanging += HeroHarrasChanging;
        }
Exemplo n.º 2
0
 public AutoAttackModeSelector(Unit owner, ITargetSelectorManager manager, AutoAttackModeConfig config)
 {
     this.Owner   = owner;
     this.Manager = manager;
     this.Config  = config;
 }