Exemplo n.º 1
0
        // Token: 0x06000833 RID: 2099 RVA: 0x00025A98 File Offset: 0x00023C98
        public bool UseAbility(TargetManager targetManager, Sleeper comboSleeper, GeomagneticGrip grip)
        {
            Unit9             target           = targetManager.Target;
            PredictionInput9  predictionInput  = grip.Ability.GetPredictionInput(target, null);
            PredictionOutput9 predictionOutput = grip.Ability.GetPredictionOutput(predictionInput);

            if (predictionOutput.HitChance < 1)
            {
                return(false);
            }
            if (!base.Ability.UseAbility(predictionOutput.CastPosition, false, false))
            {
                return(false);
            }
            float castDelay = base.Ability.GetCastDelay(targetManager.Target);

            comboSleeper.Sleep(castDelay + 0.1f);
            base.Sleeper.Sleep(1f);
            base.OrbwalkSleeper.Sleep(castDelay);
            return(true);
        }
Exemplo n.º 2
0
        public bool UseAbility(TargetManager targetManager, Sleeper comboSleeper, GeomagneticGrip grip)
        {
            var target = targetManager.Target;
            var input = grip.Ability.GetPredictionInput(target);
            var output = grip.Ability.GetPredictionOutput(input);

            if (output.HitChance < HitChance.Low)
            {
                return false;
            }

            if (!this.Ability.UseAbility(output.CastPosition))
            {
                return false;
            }

            var delay = this.Ability.GetCastDelay(targetManager.Target);
            comboSleeper.Sleep(delay + 0.1f);
            this.Sleeper.Sleep(1);
            this.OrbwalkSleeper.Sleep(delay);
            return true;
        }