Example #1
0
        void OnCombo()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

            if (!target.IsValidTarget())
            {
                return;
            }

            if (Q.IsReady() && TarickTheTrollMeNu.ComboQ() &&
                Player.HealthPercent <= TarickTheTrollMeNu.MyhpQ())
            {
                Q.Cast();
            }
            if (W.IsReady() && TarickTheTrollMeNu.ComboW() &&
                Player.HealthPercent <= TarickTheTrollMeNu.ShieldMyHp())
            {
                W.Cast(Player);
            }
            if (R.IsReady() && TarickTheTrollMeNu.Combor() &&
                Player.HealthPercent <= TarickTheTrollMeNu.Comborhp())
            {
                R.Cast();
            }
            if ((ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >=
                 TarickTheTrollMeNu.YoumusEnemies() ||
                 Player.HealthPercent >= TarickTheTrollMeNu.ItemsYoumuShp()) &&
                Activator.Youmus.IsReady() && TarickTheTrollMeNu.Youmus() &&
                Activator.Youmus.IsOwned())
            {
                Activator.Youmus.Cast();
                return;
            }
            if (Player.HealthPercent <= TarickTheTrollMeNu.BilgewaterHp() &&
                TarickTheTrollMeNu.Bilgewater() &&
                Activator.Bilgewater.IsReady() && Activator.Bilgewater.IsOwned())
            {
                Activator.Bilgewater.Cast(target);
                return;
            }

            if (Player.HealthPercent <= TarickTheTrollMeNu.BotrkHp() && TarickTheTrollMeNu.Botrk() &&
                Activator.Botrk.IsReady() &&
                Activator.Botrk.IsOwned())
            {
                Activator.Botrk.Cast(target);
            }
        }