示例#1
0
        private static void KillSteal()
        {
            if (ksMenu["useQ"].Cast <CheckBox>().CurrentValue&& Q.IsReady())
            {
                var target = Q.GetTarget();
                if (target != null && target.Health < Qdamage(target))
                {
                    Q2.Cast(target);
                    return;
                }
            }

            if (ksMenu["useE"].Cast <CheckBox>().CurrentValue&& E.IsReady())
            {
                var target = E.GetTarget();
                if (target != null && target.Health < Edamage(target))
                {
                    E.CastMinimumHitchance(target, HitChance.Medium);
                    return;
                }
            }

            if (ksMenu["useR"].Cast <CheckBox>().CurrentValue&& E.IsReady())
            {
                var target = R.GetTarget();
                if (target != null && target.Health < Rdamage(target))
                {
                    R.Cast();
                    return;
                }
            }
        }