Beispiel #1
0
        private static void Combo()
        {
            if (
                Math.ClosestBarrelWherePosInExplosionRange(
                    Player.GetEnemiesInRange(SightRange).First().ServerPosition.To2D()) != null)
            {
                Casts.AttackBarrel();
            }

            if (GetBool("main.combo.qe"))
            {
                if (targetedBarrelQ != null)
                {
                    Barrel bar =
                        Math.ClosestBarrelWherePosInExplosionRange(
                            Player.GetEnemiesInRange(SightRange).First().ServerPosition.To2D());

                    if (bar != null && bar.IsReady)
                    {
                        Casts.QMinion(bar.BarrelObj);
                    }
                }
            }

            if (GetBool("main.combo.e") && config.Item("main.settings.disablee").GetValue <KeyBind>().Active.Equals(false))
            {
                Casts.EHero();
            }

            if (GetBool("main.combo.q"))
            {
                Obj_AI_Hero target = TargetSelector.GetTarget(q.Range, q.DamageType);
                if (target != null)
                {
                    Casts.QHero(target);
                }
            }
        }