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


C# Obj_AI_Base.IsMinion方法代码示例

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


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

示例1: CastHextechGunBlade

        public bool CastHextechGunBlade(Obj_AI_Base target)
        {
            if (target == null || !target.IsValidTarget() || target.IsStructure() || target.IsMinion()) return false;

            var Hextech = ItemUtil.GetItem(ItemId.Hextech_Gunblade, 700);

            if (Hextech.IsOwned() && Hextech.IsReady() && Hextech.IsInRange(target) && Hextech.Cast(target)) return true;

            return false;
        }
开发者ID:himrengod,项目名称:Elobuddy-1,代码行数:10,代码来源:ItemController.cs

示例2: EDamage

       public static float EDamage(Obj_AI_Base target)
       {
           float damage = Program.Champion.CalculateDamageOnUnit(target, E.DamageType, 
           (35 + (15 * E.Level)) + (target.MaxHealth * (0.055f + (0.005f * E.Level))) + (0.75f * Program.Champion.FlatMagicDamageMod), true, true);
 
           float damageCap = 335 + (15 * E.Level);
 
           if (target.IsMinion() && damage > damageCap)
               return damageCap;
   
           return damage;
       }
开发者ID:CounterFX,项目名称:EloBuddy-Addons,代码行数:12,代码来源:Calculations.cs

示例3: CastBilgeBtrk

        public bool CastBilgeBtrk(Obj_AI_Base target)
        {
            if (target == null || !target.IsValidTarget() || target.IsStructure() || target.IsMinion()) return false;

            var bilgewaterBtrk = ItemUtil.GetItem(ItemId.Bilgewater_Cutlass, 550);

            if (bilgewaterBtrk.IsOwned() && bilgewaterBtrk.IsReady() && bilgewaterBtrk.IsInRange(target) && bilgewaterBtrk.Cast(target)) return true;

            bilgewaterBtrk = ItemUtil.GetItem(ItemId.Blade_of_the_Ruined_King, 550);

            if (bilgewaterBtrk.IsOwned() && bilgewaterBtrk.IsReady() && bilgewaterBtrk.IsInRange(target) && bilgewaterBtrk.Cast(target)) return true;

            return false;
        }
开发者ID:himrengod,项目名称:Elobuddy-1,代码行数:14,代码来源:ItemController.cs

示例4: CastSmite

        public bool CastSmite(Obj_AI_Base target)
        {
            if (target == null || !target.IsValidTarget() || target.IsStructure()) return false;

            var summoner = SpellsUtil.GetTargettedSpell(SpellsUtil.Summoners.Smite);

            if (summoner != null && summoner.IsReady() && summoner.IsInRange(target))
            {
                if (target.IsMinion())
                {
                    if (summoner.Cast(target)) return true;
                }

                else if ((summoner.Name.Contains("gank") || summoner.Name.Contains("duel")) && summoner.Cast(target)) return true;
            }

            return false;
        }
开发者ID:himrengod,项目名称:Elobuddy-1,代码行数:18,代码来源:SummonersController.cs

示例5: CastFaceOfTheMountain

        public bool CastFaceOfTheMountain(Obj_AI_Base ally)
        {
            if (ally == null || !ally.IsValidTarget() || ally.IsStructure() || ally.IsMinion()) return false;

            var fotmountain = ItemUtil.GetItem(ItemId.Face_of_the_Mountain, 600);

            if (fotmountain.IsOwned() && fotmountain.IsReady() && fotmountain.IsInRange(ally) && fotmountain.Cast(ally)) return true;

            return false;
        }
开发者ID:himrengod,项目名称:Elobuddy-1,代码行数:10,代码来源:ItemController.cs

示例6: CastSolari

        public bool CastSolari(Obj_AI_Base ally)
        {
            if (ally == null || !ally.IsValidTarget() || ally.IsStructure() || ally.IsMinion()) return false;

            var solari = ItemUtil.GetItem(ItemId.Locket_of_the_Iron_Solari, 600);

            if (solari.IsOwned() && solari.IsReady() && solari.IsInRange(ally) && solari.Cast(ally)) return true;

            return false;
        }
开发者ID:himrengod,项目名称:Elobuddy-1,代码行数:10,代码来源:ItemController.cs

示例7: CastMikael

        public bool CastMikael(Obj_AI_Base ally)
        {
            if (ally == null || !ally.IsValidTarget() || ally.IsStructure() || ally.IsMinion()) return false;

            var mikael = ItemUtil.GetItem(ItemId.Mikaels_Crucible, 600);

            if (mikael.IsOwned() && mikael.IsReady() && mikael.IsInRange(ally) && mikael.Cast(ally)) return true;

            return false;
        }
开发者ID:himrengod,项目名称:Elobuddy-1,代码行数:10,代码来源:ItemController.cs

示例8: EDamage

 public static double EDamage(Obj_AI_Base target, float dmg)
 {
     return Player.Instance.CalculateDamageOnUnit(target, DamageType.Physical, (float)( !target.IsMinion() ? (new double[] { 80, 110, 140, 170, 200 }[Player.Instance.Spellbook.GetSpell(SpellSlot.E).Level - 1]) : 0 + (dmg)));
 }
开发者ID:tingtop747,项目名称:Elobuddy-Addons,代码行数:4,代码来源:GPDmg.cs

示例9: Obj_AI_Base_OnBasicAttack

 private static void Obj_AI_Base_OnBasicAttack(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
 {
     if (sender.IsAlly || !DamageEngine["TrackDamage"].Cast<CheckBox>().CurrentValue || !DamageEngine["ConsiderAttacks"].Cast<CheckBox>().CurrentValue || sender.IsMinion() && !DamageEngine["ConsiderMinions"].Cast<CheckBox>().CurrentValue) return;
     if (Damages.ContainsKey(args.Target.NetworkId))
     {
         var target = (Obj_AI_Base) args.Target;
         Damages[args.Target.NetworkId].AddDamage(args.SData.Name, sender.GetAutoAttackDamage(target),
             (target.IsMelee ? sender.AttackDelay : target.Distance(sender)/args.SData.MissileSpeed)*1000);
     }
 }
开发者ID:tingtop747,项目名称:Elobuddy-Addons,代码行数:10,代码来源:Defence.cs

示例10: Obj_AI_Base_OnBasicAttack

 private static void Obj_AI_Base_OnBasicAttack(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
 {
     if (sender.IsAlly || !DamageEngine["TrackDamage"].Cast<CheckBox>().CurrentValue || !DamageEngine["ConsiderAttacks"].Cast<CheckBox>().CurrentValue || (sender.IsMinion() && !DamageEngine["ConsiderMinions"].Cast<CheckBox>().CurrentValue)) return;
     if (args.Target.IsMe)
     {
         TakeAA = true;
         Core.DelayAction(() => TakeAA = false, 80);
     }
 }
开发者ID:commonsharp,项目名称:EloBuddy-Addons,代码行数:9,代码来源:Engine.cs


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