当前位置: 首页>>代码示例>>C#>>正文


C# Obj_AI_Base.brandpassive方法代码示例

本文整理汇总了C#中Obj_AI_Base.brandpassive方法的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Base.brandpassive方法的具体用法?C# Obj_AI_Base.brandpassive怎么用?C# Obj_AI_Base.brandpassive使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Obj_AI_Base的用法示例。


在下文中一共展示了Obj_AI_Base.brandpassive方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Obj_AI_Base_OnBasicAttack

        private static void Obj_AI_Base_OnBasicAttack(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            CurrentTarget = TargetSelector.GetTarget(W.Range, DamageType.Magical);
            //(CurrentTarget.Hero != Champion.Yasuo && sender.Mana <= 90)//
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) && sender == CurrentTarget && !sender.IsDashing() && sender.Type == GameObjectType.AIHeroClient && sender.IsValidTarget(W.Range) && W.IsReady() && sender.IsEnemy)
            {

                    if (CurrentTarget.Hero != Champion.Yasuo)
                    {
                    W.Cast(sender.ServerPosition);
                    //Chat.Print("Basic Attack:"+args.SData.Name);
                    }
                    else if (sender.Mana <= 90)
                    {
                    W.Cast(sender.ServerPosition);
                    }

            }
            if (sender.brandpassive() && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) && sender == CurrentTarget && !sender.IsDashing() && sender.Type == GameObjectType.AIHeroClient && sender.IsValidTarget(Q.Range) && Q.IsReady() && sender.IsEnemy)
            {

                    if (CurrentTarget.Hero != Champion.Yasuo && Q.GetPrediction(sender).HitChance >= HitChance.Medium)
                    {
                      Q.Cast(sender.ServerPosition);
                    //Chat.Print("Basic Attack:"+args.SData.Name);
                    }
                    else if (sender.Mana <= 90 && Q.GetPrediction(sender).HitChance >= HitChance.Medium)
                    {
                      Q.Cast(sender.ServerPosition);
                    }

            }
        }
开发者ID:FireBuddy,项目名称:kappa-s-aio,代码行数:33,代码来源:Brand.cs

示例2: Interrupter_OnInterruptableSpell

        private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
        {
            if (!sender.IsEnemy || !AutoMenu.checkbox("Int") || sender == null || e == null)
            {
                return;
            }

            if (e.DangerLevel >= Common.danger(AutoMenu) && sender.IsKillable(Q.Range))
            {
                if (sender.brandpassive())
                {
                    if (Q.IsReady())
                    {
                        Q.Cast(sender, Q.hitchance(Menuini));
                    }
                }
                else
                {
                    if (E.IsReady() && Q.IsReady())
                    {
                        if (E.Cast(sender))
                        {
                            if (sender.brandpassive())
                            {
                                Q.Cast(sender, Q.hitchance(Menuini));
                            }
                        }
                    }
                }
            }
        }
开发者ID:FireBuddy,项目名称:kappa-s-aio,代码行数:31,代码来源:Brand.cs

示例3: Qlogic

        public static void Qlogic(Obj_AI_Base target)
        {
            if (target == null)
            {
                return;
            }

            var Combomode = Common.orbmode(Orbwalker.ActiveModes.Combo);
            var JungleClearmode = Common.orbmode(Orbwalker.ActiveModes.JungleClear);

            if (Combomode)
            {
                if (ComboMenu.checkbox("Qp"))
                {
                    if (target.brandpassive())
                    {
                        Q.Cast(target, Q.hitchance(Menuini));
                    }
                }
                else
                {
                    Q.Cast(target, Q.hitchance(Menuini));
                }
            }

            if (JungleClearmode)
            {
                var minion = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderByDescending(m => m.MaxHealth).FirstOrDefault(m => Q.GetPrediction(m).HitChance >= HitChance.High);

                if (minion != null)
                {
                    Q.Cast(minion);
                }
            }
        }
开发者ID:FireBuddy,项目名称:kappa-s-aio,代码行数:35,代码来源:Brand.cs

示例4: Wlogic

        public static void Wlogic(Obj_AI_Base target)
        {
            if (target == null)
            {
                return;
            }

            var Combomode = Common.orbmode(Orbwalker.ActiveModes.Combo);
            var JungleClearmode = Common.orbmode(Orbwalker.ActiveModes.JungleClear);

            var enemies = EntityManager.Heroes.Enemies.Where(e => e.IsKillable(W.Range) && e.IsKillable());
            var pred = Prediction.Position.PredictCircularMissileAoe(enemies.Cast<Obj_AI_Base>().ToArray(), W.Range, W.Width + 50, W.CastDelay, W.Speed);
            var castpos = pred.OrderByDescending(p => p.GetCollisionObjects<AIHeroClient>().Length).FirstOrDefault(p => p.CollisionObjects.Contains(target));
            if (Combomode)
            {
                if (ComboMenu.checkbox("Wp"))
                {
                    if (castpos != null && castpos.CollisionObjects.Length > 1)
                    {
                        W.Cast(castpos.CastPosition);
                    }

                    if (target.brandpassive() || target.HasBuffOfType(BuffType.Slow) || !target.CanMove)
                    {
                        W.Cast(target, W.hitchance(Menuini));
                    }
                }
                else
                {
                    W.Cast(target, W.hitchance(Menuini));
                }
            }

            if (JungleClearmode)
            {
                var minions = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderByDescending(m => m.MaxHealth).Where(e => e.IsKillable(W.Range) && e.IsKillable());
                var loc = EntityManager.MinionsAndMonsters.GetCircularFarmLocation(minions.ToArray(), W.Width + 75, (int)W.Range + 50, W.CastDelay, W.Speed);
                var farmpos = loc.CastPosition;

                if (farmpos != null)
                {
                    W.Cast(farmpos);
                }
            }
        }
开发者ID:FireBuddy,项目名称:kappa-s-aio,代码行数:45,代码来源:Brand.cs

示例5: Elogic

        public static void Elogic(Obj_AI_Base target)
        {
            if (target == null)
            {
                return;
            }

            var Combomode = Common.orbmode(Orbwalker.ActiveModes.Combo);
            var JungleClearmode = Common.orbmode(Orbwalker.ActiveModes.JungleClear);

            if (Combomode)
            {
                if (ComboMenu.checkbox("Ep") && target.brandpassive())
                {
                    E.Cast(target);
                }
                else
                {
                    E.Cast(target);
                }
            }

            if (JungleClearmode)
            {
                var minionpassive = EntityManager.MinionsAndMonsters.GetJungleMonsters().Where(m => m.brandpassive() && m.IsKillable(E.Range));
                if (minionpassive != null)
                {
                    foreach (var minion in minionpassive)
                    {
                        var minions = EntityManager.MinionsAndMonsters.GetJungleMonsters().Where(e => e.IsKillable(E.Range) && e.IsKillable());
                        var count = minions.Count(m => m.IsInRange(minion, 300));
                        if (count >= 2)
                        {
                            E.Cast(minion);
                        }
                    }
                }
            }
        }
开发者ID:FireBuddy,项目名称:kappa-s-aio,代码行数:39,代码来源:Brand.cs


注:本文中的Obj_AI_Base.brandpassive方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。