Ejemplo 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;
        }
Ejemplo n.º 2
0
        protected override void OnActivate()
        {
            this.Config = new AutoAttackModeConfig(
                this.Orbwalker.Settings.Factory.Parent,
                this.name,
                this.key,
                this.hero,
                this.creep,
                this.neutral,
                this.building,
                this.deny,
                this.lasthit);
            this.Selector = new AutoAttackModeSelector(this.Owner, this.TargetSelector, this.Config);

            base.OnActivate();
        }