Ejemplo n.º 1
0
        private static void FleeEvent()
        {
            try
            {
                Me.IssueOrder(OrderType.MoveTo, Game.CursorPos);

                if (FleeMenu["FlowersFiora.FleeMenu.Q"].Enabled && Q.Ready)
                {
                    var obj = MyExtraManager.GetNearObj();

                    if (obj != null && obj.IsValidTarget(Q.Range))
                    {
                        Q.CastOnUnit(obj);
                    }
                    else
                    {
                        Q.Cast(Game.CursorPos);
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.FleeEvent." + ex);
            }
        }
Ejemplo n.º 2
0
        private static void ComboEvent()
        {
            try
            {
                var target = TargetSelector.GetTarget(800f);

                if (target != null && target.IsValidTarget(800f))
                {
                    if (ComboMenu["FlowersFiora.ComboMenu.Item"].Enabled)
                    {
                        if ((target.Health * 1.12 >= target.MaxHealth ? target.MaxHealth : target.Health * 1.12) <
                            MyExtraManager.GetComboDamage(target) && target.DistanceToPlayer() > 400)
                        {
                            ItemsUse(true, false, false);
                        }

                        if (target.IsValidTarget(400) && (!target.IsValidAutoRange() || !Orbwalker.CanAttack()))
                        {
                            ItemsUse(false, true, false);
                        }
                    }

                    if (ComboMenu["FlowersFiora.ComboMenu.Ignite"].Enabled && IgniteSlot != SpellSlot.Unknown &&
                        Ignite.Ready)
                    {
                        if (target.Health < MyExtraManager.GetComboDamage(target) * 0.6 ||
                            target.Health < Me.GetIgniteDamage(target))
                        {
                            Ignite.CastOnUnit(target);
                        }
                    }

                    if (ComboMenu["FlowersFiora.ComboMenu.Force"].Enabled && target.IsValidTarget(500))
                    {
                        ForcusAttack(target);
                    }

                    if (ComboMenu["FlowersFiora.ComboMenu.Q"].Enabled && Q.Ready && target.IsValidTarget(Q.Range))
                    {
                        CastQ(target);
                    }

                    if (ComboMenu["FlowersFiora.ComboMenu.R"].As <MenuKeyBind>().Enabled&& R.Ready)
                    {
                        if (ComboMenu["FlowersFiora.ComboMenu.RSolo"].Enabled &&
                            ComboMenu["FlowersFiora.ComboMenu.RTargetFor" + target.ChampionName].Enabled &&
                            target.IsValidTarget(R.Range))
                        {
                            if (Me.CountAllyHeroesInRange(1000) < 2 && Me.CountEnemyHeroesInRange(1000) <= 2)
                            {
                                if (target.Health < MyExtraManager.GetComboDamage(target) - Me.GetAutoAttackDamage(target))
                                {
                                    if (!target.IsUnKillable() && target.Health > Me.GetAutoAttackDamage(target) * 3)
                                    {
                                        R.CastOnUnit(target);
                                    }
                                }
                            }
                        }

                        if (ComboMenu["FlowersFiora.ComboMenu.RTeam"].Enabled)
                        {
                            if (Me.CountEnemyHeroesInRange(1000) > 2 && Me.CountAllyHeroesInRange(1000) > 1)
                            {
                                foreach (
                                    var x in
                                    GameObjects.EnemyHeroes.Where(
                                        x =>
                                        x.IsValidTarget(R.Range) &&
                                        x.Health <=
                                        MyExtraManager.GetComboDamage(target) + Me.GetAutoAttackDamage(x) * 3))
                                {
                                    if (!x.IsUnKillable() && x.IsValidTarget(R.Range))
                                    {
                                        R.CastOnUnit(x);
                                    }
                                }
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.ComboEvent." + ex);
            }
        }