コード例 #1
0
ファイル: Program.cs プロジェクト: kirabc/EloBuddy-7
        private static void Combo()
        {
            var target = TargetSelector.GetTarget(1000, DamageType.Magical, Player.Instance.Position);

            if (target != null && target.ValidTarget(1000))
            {
                if (check(combo, "CQ") && DemSpells.Q.CanCast(target) && DemSpells.Q.Cast())
                {
                    return;
                }

                CastW();

                if (check(combo, "CE") && DemSpells.W.CanCast(target))
                {
                    if (comb(combo, "EMode") == 0)
                    {
                        DemSpells.E.CastMinimumHitchance(target, slider(misc, "EPred"));
                    }
                    else
                    {
                        DemSpells.E.Cast(target.Position);
                    }
                }

                if (check(combo, "CR") && DemSpells.R.CanCast(target) && TotalRDamage(target) > (target.Health + (target.FlatHPRegenMod * 10)))
                {
                    if (DemSpells.E.IsReady() && EDamage(target) > target.Health)
                    {
                        return;
                    }

                    DemSpells.R.Cast(target);
                }

                if (check(combo, "Cignt") && Ignite.CanCast(target) && target.Health > ComboDamage(target) &&
                    myhero.GetSummonerSpellDamage(target, DamageLibrary.SummonerSpells.Ignite) > target.Health && (TotalRDamage(target) < target.Health &&
                                                                                                                   !target.HasBuff("mordekaisercotgpetbuff2")))
                {
                    if (target.Distance(myhero.Position) < (DemSpells.E.Range / 2))
                    {
                        return;
                    }

                    else
                    {
                        Ignite.Cast(target);
                    }
                }
            }
        }