Ejemplo n.º 1
0
        // Token: 0x06000832 RID: 2098 RVA: 0x000259F4 File Offset: 0x00023BF4
        public bool UseAbility(TargetManager targetManager, Sleeper comboSleeper, BoulderSmash smash)
        {
            Unit9             target           = targetManager.Target;
            PredictionInput9  predictionInput  = smash.Ability.GetPredictionInput(target, null);
            PredictionOutput9 predictionOutput = smash.Ability.GetPredictionOutput(predictionInput);

            if (predictionOutput.HitChance < 1)
            {
                return(false);
            }
            if (!base.Ability.UseAbility(Vector3Extensions.Extend2D(base.Owner.Position, predictionOutput.CastPosition, 100f), 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);
        }
Ejemplo n.º 2
0
        public bool UseAbility(TargetManager targetManager, Sleeper comboSleeper, BoulderSmash smash)
        {
            var target = targetManager.Target;
            var input = smash.Ability.GetPredictionInput(target);
            var output = smash.Ability.GetPredictionOutput(input);

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

            if (!this.Ability.UseAbility(this.Owner.Position.Extend2D(output.CastPosition, 100)))
            {
                return false;
            }

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