示例#1
0
        private static void CastUltimate()
        {
            if (Mysticflare == null ||
                !Menu.Item("abilities").GetValue <AbilityToggler>().IsEnabled(Mysticflare.Name) ||
                !Mysticflare.CanBeCasted() ||
                Target.IsMagicImmune() ||
                !IsFullDebuffed() ||
                EzKill ||
                Target.HasModifier("modifier_rune_haste") ||
                Target.Health * 100 / Target.MaximumHealth < Menu.Item("noCastUlti").GetValue <Slider>().Value ||
                Prediction.StraightTime(Target) / 1000 < StraightTimeCheck.GetValue <Slider>().Value)
            {
                return;
            }

            if (!Target.CanMove() ||
                Target.UnitState.HasFlag(UnitState.Rooted) ||
                Target.UnitState.HasFlag(UnitState.Stunned))
            {
                Mysticflare.UseAbility(Target.NetworkPosition);
            }
            else
            {
                GetPrediction();
            }
        }
示例#2
0
        private static void GetPrediction()
        {
            switch (PredictionType.GetValue <StringList>().SelectedIndex)
            {
            case 0:
                if (Target.UnitState.HasFlag(UnitState.Hexed))
                {
                    Mysticflare.UseAbility(Prediction.InFront(Target, 87));
                    break;
                }
                Mysticflare.UseAbility(Prediction.InFront(Target, 100));
                break;

            case 1:
                if (Target.UnitState.HasFlag(UnitState.Hexed))
                {
                    Mysticflare.UseAbility(Prediction.PredictedXYZ(Target, 210 / Target.MovementSpeed * 1000));
                    break;
                }
                Mysticflare.UseAbility(Prediction.PredictedXYZ(Target, 230 / Target.MovementSpeed * 1000));
                break;
            }
        }