Exemple #1
0
        private static void ComboEvent()
        {
            try
            {
                var target =
                    TargetSelector.GetTarget(
                        EntityManager.Heroes.Enemies.Where(x => x.IsValidTarget(Q.Range) && !x.IsUnKillable()),
                        DamageType.Magical);

                if (target != null && target.IsValidTarget(Q.Range))
                {
                    if (ComboMenu["FlowersRyze.ComboMenu.Ignite"].Cast <CheckBox>().CurrentValue&& IgniteSlot != SpellSlot.Unknown &&
                        Ignite.IsReady() && target.IsValidTarget(600) &&
                        (target.Health < MyExtraManager.GetComboDamage(target) && target.IsValidTarget(400) ||
                         target.Health < Me.GetIgniteDamage(target)))
                    {
                        Ignite.Cast(target);
                    }

                    if (Core.GameTickCount - LastCastTime > 500)
                    {
                        switch (ComboMenu["FlowersRyze.ComboMenu.Mode"].Cast <ComboBox>().CurrentValue)
                        {
                        case 0:
                            NormalCombo(target, ComboMenu["FlowersRyze.ComboMenu.Q"].Cast <CheckBox>().CurrentValue,
                                        ComboMenu["FlowersRyze.ComboMenu.W"].Cast <CheckBox>().CurrentValue,
                                        ComboMenu["FlowersRyze.ComboMenu.E"].Cast <CheckBox>().CurrentValue);
                            break;

                        case 1:
                            ShieldCombo(target, ComboMenu["FlowersRyze.ComboMenu.Q"].Cast <CheckBox>().CurrentValue,
                                        ComboMenu["FlowersRyze.ComboMenu.W"].Cast <CheckBox>().CurrentValue,
                                        ComboMenu["FlowersRyze.ComboMenu.E"].Cast <CheckBox>().CurrentValue);
                            break;

                        default:
                            BurstCombo(target, ComboMenu["FlowersRyze.ComboMenu.Q"].Cast <CheckBox>().CurrentValue,
                                       ComboMenu["FlowersRyze.ComboMenu.W"].Cast <CheckBox>().CurrentValue,
                                       ComboMenu["FlowersRyze.ComboMenu.E"].Cast <CheckBox>().CurrentValue);
                            break;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.ComboEvent." + ex);
            }
        }
Exemple #2
0
        private static void ComboEvent()
        {
            try
            {
                var target = TargetSelector.GetTarget(Q.Range);

                if (target != null && target.IsValidTarget(Q.Range))
                {
                    if (ComboMenu["FlowersRyze.ComboMenu.Ignite"].Enabled && IgniteSlot != SpellSlot.Unknown &&
                        Ignite.Ready && target.IsValidTarget(600) &&
                        (target.Health < MyExtraManager.GetComboDamage(target) && target.IsValidTarget(400) ||
                         target.Health < Me.GetIgniteDamage(target)))
                    {
                        Ignite.Cast(target);
                    }

                    if (Game.TickCount - LastCastTime > 500)
                    {
                        switch (ComboMenu["FlowersRyze.ComboMenu.Mode"].As <MenuList>().Value)
                        {
                        case 0:
                            NormalCombo(target, ComboMenu["FlowersRyze.ComboMenu.Q"].Enabled,
                                        ComboMenu["FlowersRyze.ComboMenu.W"].Enabled,
                                        ComboMenu["FlowersRyze.ComboMenu.E"].Enabled);
                            break;

                        case 1:
                            ShieldCombo(target, ComboMenu["FlowersRyze.ComboMenu.Q"].Enabled,
                                        ComboMenu["FlowersRyze.ComboMenu.W"].Enabled,
                                        ComboMenu["FlowersRyze.ComboMenu.E"].Enabled);
                            break;

                        default:
                            BurstCombo(target, ComboMenu["FlowersRyze.ComboMenu.Q"].Enabled,
                                       ComboMenu["FlowersRyze.ComboMenu.W"].Enabled,
                                       ComboMenu["FlowersRyze.ComboMenu.E"].Enabled);
                            break;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.ComboEvent." + ex);
            }
        }