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


C# Obj_AI_Hero.IsChannelingImportantSpell方法代码示例

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


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

示例1: CanMove

 public static bool CanMove(Obj_AI_Hero target)
 {
     return !(target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) || target.HasBuffOfType(BuffType.Knockup) ||
         target.HasBuffOfType(BuffType.Charm) || target.HasBuffOfType(BuffType.Fear) || target.HasBuffOfType(BuffType.Knockback) ||
         target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) ||
         target.IsStunned || target.IsChannelingImportantSpell());
 }
开发者ID:seniseviy,项目名称:LeagueSharp-7,代码行数:7,代码来源:Program.cs

示例2: CanMove

 public static bool CanMove(Obj_AI_Hero target)
 {
     if (target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) || target.HasBuffOfType(BuffType.Knockup) ||
         target.HasBuffOfType(BuffType.Charm) || target.HasBuffOfType(BuffType.Fear) || target.HasBuffOfType(BuffType.Knockback) ||
         target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) ||
         target.IsStunned || (target.IsChannelingImportantSpell() && !target.IsMoving) || target.MoveSpeed < 50 || Prediction.GetPrediction(target,0.5f).Hitchance > HitChance.Dashing)
     {
         return false;
     }
     else
         return true;
 }
开发者ID:superjo1508,项目名称:LeagueRepo,代码行数:12,代码来源:OktwCommon.cs

示例3: CanMove

 public static bool CanMove(Obj_AI_Hero target)
 {
     if(target.MoveSpeed < 50)
         return false;
     else if (!Player.CanMove || target.IsStunned || target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) || target.HasBuffOfType(BuffType.Knockup) ||
         target.HasBuffOfType(BuffType.Knockback) || target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) || target.IsChannelingImportantSpell())
     {
         return false;
     }
     else
         return true;
 }
开发者ID:ShineSharp,项目名称:LeagueRepo,代码行数:12,代码来源:OktwCommon.cs

示例4: CanMove

 public static bool CanMove(Obj_AI_Hero target)
 {
     if (target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) || target.HasBuffOfType(BuffType.Knockup) ||
         target.HasBuffOfType(BuffType.Charm) || target.HasBuffOfType(BuffType.Fear) || target.HasBuffOfType(BuffType.Knockback) ||
         target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) ||
         target.IsStunned || target.IsChannelingImportantSpell())
     {
         Program.debug("!canMov" + target.ChampionName);
         return false;
     }
     else
         return true;
 }
开发者ID:Kraunier,项目名称:LeagueRepo,代码行数:13,代码来源:OktwCommon.cs

示例5: IsEnemyImmobile

 /// <summary>
 /// Enemy Immobile
 /// </summary>
 /// <param name="target"></param>
 /// <returns></returns>
 public static bool IsEnemyImmobile(Obj_AI_Hero target)
 {
     if (target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) ||
         target.HasBuffOfType(BuffType.Knockup) ||
         target.HasBuffOfType(BuffType.Charm) || target.HasBuffOfType(BuffType.Fear) ||
         target.HasBuffOfType(BuffType.Knockback) ||
         target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) ||
         target.IsStunned || target.IsChannelingImportantSpell())
     {
         return true;
     }
     else
     {
         return false;
     }
         
 }
开发者ID:Sthephanfelix,项目名称:LeagueSharp-4,代码行数:22,代码来源:Helper.cs

示例6: CanMove

 public static bool CanMove(Obj_AI_Hero target)
 {
     if (target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) || target.HasBuffOfType(BuffType.Knockup) ||
         target.HasBuffOfType(BuffType.Charm) || target.HasBuffOfType(BuffType.Fear) || target.HasBuffOfType(BuffType.Knockback) ||
         target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) ||
         target.IsStunned || (target.IsChannelingImportantSpell() && !target.IsMoving) || target.MoveSpeed < 10)
     {
         return false;
     }
     else
         return true;
 }
开发者ID:qq2128969,项目名称:LeagueRepo,代码行数:12,代码来源:OktwCommon.cs

示例7: Interrupter_OnPossibleToInterrupt

        public override void Interrupter_OnPossibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
        {
            if (Config.Item("MINTERRUPTE").GetValue<bool>() && Spells[E].IsInRange(sender))
                Spells[E].Cast();

            if (Config.Item("MINTERRUPTRE").GetValue<bool>() && Spells[R].IsInRange(sender) && sender.IsChannelingImportantSpell())
            {
                if (Spells[R].IsReady() && Spells[E].IsReady())
                {
                    Spells[R].CastOnUnit(sender);
                    Spells[E].Cast();
                }
            }
        }
开发者ID:ShineSharp,项目名称:LeagueSharp,代码行数:14,代码来源:Diana.cs

示例8: Interrupter_OnPossibleToInterrupt

 protected override void Interrupter_OnPossibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (sender.IsChannelingImportantSpell())
     {
         if (Spells[R].IsReady() && Helpers.BallMgr.Position.Distance(sender.ServerPosition) < Spells[R].Range)
             Spells[R].Cast(ObjectManager.Player.ServerPosition, true);
         else if (Spells[Q].IsReady() && Spells[R].IsReady() && ObjectManager.Player.ServerPosition.Distance(sender.ServerPosition) < Spells[Q].Range / 2f)
         {
             Spells[Q].Cast(sender, true);
             Spells[W].Cast(ObjectManager.Player.ServerPosition, true);
         }
     }
 }
开发者ID:JelloBeans,项目名称:SAC,代码行数:13,代码来源:Orianna.cs

示例9: Interrupter_OnPossibleToInterrupt

 public override void Interrupter_OnPossibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (sender.IsChannelingImportantSpell())
     {
         if (Spells[R].IsReady() && Ball.Position.Distance(sender.ServerPosition) < Spells[R].Range)
             Ball.Post(BallMgr.Command.Shockwave, null);
         else if (Spells[Q].IsReady() && Spells[R].IsReady() && ObjectManager.Player.ServerPosition.Distance(sender.ServerPosition) < Spells[Q].Range / 2f)
         {
             Ball.Post(BallMgr.Command.Attack, sender);
             Ball.Post(BallMgr.Command.Shockwave, null);
         }
     }
 }
开发者ID:fgpmaia123,项目名称:Leaguesharp-31,代码行数:13,代码来源:Orianna.cs

示例10: IsImmobileTarget

 public static bool IsImmobileTarget(Obj_AI_Hero target)
 {
     return target.Buffs.Count(p => IsImmobilizeBuff(p.Type)) > 0 || target.IsChannelingImportantSpell();
 }
开发者ID:xQxCPMxQx,项目名称:Leaguesharp-7,代码行数:4,代码来源:Utility.cs

示例11: chanellingChecker

 public static bool chanellingChecker(Obj_AI_Hero target)
 {
     if (target.HasBuff("MissFortuneBulletTime") || target.HasBuff("katarinaultibroker") || target.HasBuff("missfortunebulletsound")
         || target.IsChannelingImportantSpell())
     {
         return true;
     }
     else
     {
         return false;
     }
 }
开发者ID:Sthephanfelix,项目名称:LeagueSharp-4,代码行数:12,代码来源:Program.cs

示例12: CanMove

 private static bool CanMove(Obj_AI_Hero e)
 {
     if (e.HasBuffOfType(BuffType.Stun) || e.HasBuffOfType(BuffType.Snare) || e.HasBuffOfType(BuffType.Knockup) ||
         e.HasBuffOfType(BuffType.Charm) || e.HasBuffOfType(BuffType.Fear) || e.HasBuffOfType(BuffType.Knockback) ||
         e.HasBuffOfType(BuffType.Taunt) || e.HasBuffOfType(BuffType.Suppression) ||
         e.IsStunned || e.IsChannelingImportantSpell() || e.MoveSpeed < 50f)
     {
         return false;
     }
     else
     {
         return true;
     }
 }
开发者ID:CjShu,项目名称:L-CC,代码行数:14,代码来源:Heroe.cs


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