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); } }
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); } }
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); } }