예제 #1
0
        private static void E2()
        {
            var target = TargetSelector.GetTarget(E.Range, DamageType.Magical);

            if (MariagiospaldaMenu.ComboE2() && Player.HealthPercent > 25 && PiuwPiuwMissile != null && E.IsReady())
            {
                if (Vector2.Distance(MissilePosition, target.ServerPosition.To2D()) < Vector3.Distance(Player.ServerPosition, target.ServerPosition) && Vector3.Distance(target.ServerPosition, PiuwPiuwMissile.EndPosition) > Vector3.Distance(Player.ServerPosition, target.ServerPosition))
                {
                    E1.Cast();
                    return;
                }
                var EndingCount = PiuwPiuwMissile.Position.CountEnemiesInRange(R.Range);

                if (EndingCount >= MariagiospaldaMenu.ComboE1() && R.IsReady() && Vector3.Distance(PiuwPiuwMissile.Position, target.ServerPosition) < Vector3.Distance(Player.ServerPosition, target.ServerPosition))
                {
                    E1.Cast();
                    return;
                }
            }
        }