Exemplo n.º 1
0
        public void AddAbility(Ability9 ability)
        {
            var rangeAbility = new AbilityRange(ability);

            this.abilities.Add(rangeAbility);

            if (!this.toggler.AllAbilities.TryGetValue(ability.Name, out var enabled))
            {
                this.toggler.AddAbility(ability.Name);
            }
            else if (enabled)
            {
                rangeAbility.Enable(this.heroMenu);
            }
        }
Exemplo n.º 2
0
        // Token: 0x06000068 RID: 104 RVA: 0x00006138 File Offset: 0x00004338
        public void AddAbility(Ability9 ability)
        {
            AbilityRange abilityRange = new AbilityRange(ability);

            this.abilities.Add(abilityRange);
            bool flag;

            if (!this.toggler.AllAbilities.TryGetValue(ability.Name, out flag))
            {
                this.toggler.AddAbility(ability.Name, null);
                return;
            }
            if (flag)
            {
                abilityRange.Enable(this.heroMenu);
            }
        }