示例#1
0
        public Shivas_guard(Hero hero, Unit target, MenuItemToggler hasItem, ref Sleeper sleeper)
        {
            var item = AbilityId.item_shivas_guard;

            if (hasItem.GetValue(item) && ItemsHelper.FindItem(hero, item) && hero.Position.Distance2D(target.Position) <= 700 && hero.Inventory.MainItems.Where(x => x.Id == item).FirstOrDefault().Cooldown == 0)
            {
                ItemsHelper.CastItem(hero, item);
                sleeper.Sleep(100);
            }
        }
示例#2
0
        public Urn(Hero hero, Hero target, MenuItemToggler hasItem, ref Sleeper sleeper)
        {
            var item = AbilityId.item_urn_of_shadows;

            if (hasItem.GetValue(item) && ItemsHelper.FindItem(hero, item) && hero.Position.Distance2D(target.Position) <= 500 && hero.Inventory.MainItems.Where(x => x.Id == item).FirstOrDefault().Cooldown == 0)
            {
                ItemsHelper.CastItemEnemy(hero, target, item);
                sleeper.Sleep(100);
            }
        }
示例#3
0
        public Abyssal(Hero hero, Unit target, MenuItemToggler hasItem, ref Sleeper sleeper)
        {
            var item = AbilityId.item_abyssal_blade;

            if (hasItem.GetValue(item) &&
                ItemsHelper.FindItem(hero, item) &&
                hero.Position.Distance2D(target.Position) <= 500 &&
                hero.Inventory.MainItems.Where(x => x.Id == item).FirstOrDefault().Cooldown == 0 &&
                !target.IsHexed() &&
                !target.IsStunned())
            {
                ItemsHelper.CastItemEnemy(hero, target, item);
                sleeper.Sleep(300);
            }
        }