protected override void OnActivate() { base.OnActivate(); Context.Inventory.Attach(this); MenuKey.PropertyChanged += MenuKeyOnPropertyChanged; Bolt = Context.AbilityFactory.GetAbility <sven_storm_bolt>(); Warcry = Context.AbilityFactory.GetAbility <sven_warcry>(); GodsStrength = Context.AbilityFactory.GetAbility <sven_gods_strength>(); }
protected override void OnActivate() { base.OnActivate(); var factory = this.Config.Hero.Factory; var itemMenu = this.Config.Hero.ItemMenu; this.UseUltiBefore = factory.Item("Use Ulti and Warcry before Blink", false); this.BkbHeroes = itemMenu.Item("Black King Bar", new HeroToggler(new Dictionary <string, bool>(), true, false, true)); this.BtOrchidHeroes = itemMenu.Item("Bloodthorn / Orchid", new HeroToggler(new Dictionary <string, bool>(), true, false, true)); this.HalberdHeroes = itemMenu.Item("Halberd", new HeroToggler(new Dictionary <string, bool>(), true, false, true)); this.Stun = this.Context.AbilityFactory.GetAbility <sven_storm_bolt>(); this.Warcry = this.Context.AbilityFactory.GetAbility <sven_warcry>(); this.Ulti = this.Context.AbilityFactory.GetAbility <sven_gods_strength>(); }