// Token: 0x06000A06 RID: 2566 RVA: 0x00006F94 File Offset: 0x00005194
 public bool ForceUseAbility(UsableAbility ability, bool ignorePrediction = false, bool aoe = true)
 {
     if (ignorePrediction)
     {
         return(ability.ForceUseAbility(this.TargetManager, this.comboSleeper));
     }
     return(ability.UseAbility(this.TargetManager, this.comboSleeper, aoe));
 }
Esempio n. 2
0
        public bool UseMoveAbility(UsableAbility ability)
        {
            if (!this.CanBeCasted(ability))
            {
                return(false);
            }

            return(ability.UseAbility(this.TargetManager, this.comboSleeper, true));
        }
Esempio n. 3
0
        public bool UseAbilityIfNone(UsableAbility ability, params UsableAbility[] checkAbilities)
        {
            if (!this.CanBeCasted(ability))
            {
                return(false);
            }

            if (checkAbilities.All(x => !this.CanBeCasted(x, false)))
            {
                return(ability.UseAbility(this.TargetManager, this.comboSleeper, true));
            }

            return(false);
        }
Esempio n. 4
0
        public bool UseAbilityIfCondition(UsableAbility ability, params UsableAbility[] checkAbilities)
        {
            if (!this.CanBeCasted(ability))
            {
                return(false);
            }

            if (!ability.ShouldConditionCast(
                    this.TargetManager,
                    this.menu,
                    checkAbilities.Where(x => this.CanBeCasted(x, false, false)).ToList()))
            {
                return(false);
            }

            return(ability.UseAbility(this.TargetManager, this.comboSleeper, true));
        }
 // Token: 0x06000A0B RID: 2571 RVA: 0x0000701A File Offset: 0x0000521A
 public bool UseAbility(UsableAbility ability, bool aoe = true)
 {
     return(this.CanBeCasted(ability, true, true, true, true) && ability.UseAbility(this.TargetManager, this.comboSleeper, aoe));
 }
 // Token: 0x06000A10 RID: 2576 RVA: 0x000070C1 File Offset: 0x000052C1
 public bool UseAbilityIfNone(UsableAbility ability, params UsableAbility[] checkAbilities)
 {
     return(this.CanBeCasted(ability, true, true, true, true) && checkAbilities.All((UsableAbility x) => !this.CanBeCasted(x, false, true, true, true)) && ability.UseAbility(this.TargetManager, this.comboSleeper, true));
 }
 // Token: 0x06000A0F RID: 2575 RVA: 0x0002BCB8 File Offset: 0x00029EB8
 public bool UseAbilityIfCondition(UsableAbility ability, params UsableAbility[] checkAbilities)
 {
     return(this.CanBeCasted(ability, true, true, true, true) && ability.ShouldConditionCast(this.TargetManager, this.menu, (from x in checkAbilities
                                                                                                                             where this.CanBeCasted(x, false, false, true, true)
                                                                                                                             select x).ToList <UsableAbility>()) && ability.UseAbility(this.TargetManager, this.comboSleeper, true));
 }