Exemple #1
0
        private static void HarassEvent()
        {
            try
            {
                if (isCastingUlt)
                {
                    return;
                }

                var target = TargetSelector.GetTarget(E.Range + 300f);

                if (target.IsValidTarget(E.Range + 300f))
                {
                    if (HarassMenu["FlowersKatarina.HarassMenu.W"].Enabled && W.Ready && target.IsValidTarget(W.Range))
                    {
                        W.Cast();
                    }

                    if (HarassMenu["FlowersKatarina.HarassMenu.Q"].Enabled && Q.Ready && Me.Level < 3 &&
                        target.IsValidTarget(Q.Range))
                    {
                        Q.CastOnUnit(target);
                    }

                    switch (HarassMenu["FlowersKatarina.HarassMenu.Mode"].As <MenuList>().Value)
                    {
                    case 0:
                        MyExtraManager.QEWLogic(target, HarassMenu["FlowersKatarina.HarassMenu.Q"].Enabled,
                                                HarassMenu["FlowersKatarina.HarassMenu.W"].Enabled,
                                                HarassMenu["FlowersKatarina.HarassMenu.E"].Enabled);
                        break;

                    case 1:
                        MyExtraManager.EQWLogic(target, HarassMenu["FlowersKatarina.HarassMenu.Q"].Enabled,
                                                HarassMenu["FlowersKatarina.HarassMenu.W"].Enabled,
                                                HarassMenu["FlowersKatarina.HarassMenu.E"].Enabled);
                        break;
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.HarassEvent." + ex);
            }
        }
Exemple #2
0
        private static void ComboEvent()
        {
            try
            {
                if (isCastingUlt)
                {
                    return;
                }

                var target = TargetSelector.GetTarget(E.Range + 300f);

                if (target != null && target.IsValidTarget(E.Range + 300f))
                {
                    if (ComboMenu["FlowersKatarina.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);
                    }

                    //Item Hextech_Gunblade Bilgewater_Cutlass

                    if (ComboMenu["FlowersKatarina.ComboMenu.W"].Enabled &&
                        ComboMenu["FlowersKatarina.ComboMenu.WSmart"].Enabled && W.Ready &&
                        target.IsValidTarget(W.Range))
                    {
                        W.Cast();
                    }

                    switch (ComboMenu["FlowersKatarina.ComboMenu.Mode"].As <MenuList>().Value)
                    {
                    case 0:
                        MyExtraManager.QEWLogic(target, ComboMenu["FlowersKatarina.ComboMenu.Q"].Enabled,
                                                ComboMenu["FlowersKatarina.ComboMenu.W"].Enabled,
                                                ComboMenu["FlowersKatarina.ComboMenu.E"].Enabled);
                        break;

                    case 1:
                        MyExtraManager.EQWLogic(target, ComboMenu["FlowersKatarina.ComboMenu.Q"].Enabled,
                                                ComboMenu["FlowersKatarina.ComboMenu.W"].Enabled,
                                                ComboMenu["FlowersKatarina.ComboMenu.E"].Enabled);
                        break;
                    }

                    if (ComboMenu["FlowersKatarina.ComboMenu.R"].Enabled && R.Ready &&
                        Me.CountEnemyHeroesInRange(R.Range) > 0 && !Q.Ready && !W.Ready && !E.Ready)
                    {
                        if (ComboMenu["FlowersKatarina.ComboMenu.RAlways"].Enabled)
                        {
                            Orbwalker.AttackingEnabled = false;
                            Orbwalker.MovingEnabled    = false;
                            R.Cast();
                        }

                        if (ComboMenu["FlowersKatarina.ComboMenu.RKillAble"].Enabled &&
                            (target.Health <= MyExtraManager.GetComboDamage(target) ||
                             target.Health <= R.GetDamage(target) * 0.8) &&
                            target.Health > Q.GetDamage(target) + MyExtraManager.GetKataPassiveDamage(target) * 2)
                        {
                            Orbwalker.AttackingEnabled = false;
                            Orbwalker.MovingEnabled    = false;
                            R.Cast();
                        }

                        if (ComboMenu["FlowersKatarina.ComboMenu.RCountHit"].As <MenuSliderBool>().Enabled&&
                            Me.CountEnemyHeroesInRange(R.Range) >= ComboMenu["FlowersKatarina.ComboMenu.RCountHit"].As <MenuSliderBool>().Value)
                        {
                            Orbwalker.AttackingEnabled = false;
                            Orbwalker.MovingEnabled    = false;
                            R.Cast();
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.ComboEvent." + ex);
            }
        }