コード例 #1
0
        private static void Kill()
        {
            var target = TargetSelector.GetTarget(R.Range, DamageType.Physical); //By BestSNA

            if (Misc["KSR"].Cast <CheckBox>().CurrentValue)
            {
                if (target != null && target.Health < SpellDamage.Rmage(target))
                {
                    if (!target.IsInRange(_Player, R.Range) && R.IsReady())
                    {
                        return;
                    }
                    {
                        R.Cast(target);
                    }
                }
            }
        }
コード例 #2
0
        private static void FlashR()
        {
            var flashtarget = TargetSelector.GetTarget(850 + 425, DamageType.Physical);

            if (flashtarget == null)
            {
                return;
            }
            var xpos   = flashtarget.Position.Extend(flashtarget, 850);
            var target = TargetSelector.GetTarget(R.Range, DamageType.Physical);

            if (R.IsReady() && Flash.IsReady())
            {
                if (flashtarget.IsValidTarget(850 + 425) && target.Health < SpellDamage.Rmage(target))
                {
                    Flash.Cast((Vector3)xpos);
                    R.Cast(target);
                }
            }
        }