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


C# Spell.AOECast方法代码示例

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


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

示例1: SC

 internal static void SC(Spell spell, float ExtraTargetDistance = 150f,float ALPHA = float.MaxValue, float Cost = 1f) //
 { // 
     var target = TargetSelector.GetTarget(spell.Range, spell.DamageType, true); //
     bool HM = true;
     bool LM = true;
     bool LHM = false;
     if (Cost == 1f)
     {
         HM = getManaPercent(Player) > AIO_Menu.Champion.Harass.IfMana;
         LM = getManaPercent(Player) > AIO_Menu.Champion.Laneclear.IfMana;
         LHM = getManaPercent(Player) > AIO_Menu.Champion.Jungleclear.IfMana;
     }
     else
     {
         HM = true;
         LM = true;
         LHM = true;
     }
     if(target != null)
     {
         if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && Menu.Item("Combo.Use " + spell.Slot.ToString(), true) != null)
         {
             if(Menu.Item("Combo.Use " + spell.Slot.ToString(), true).GetValue<bool>()
             && spell.IsReady())
             {
                 if(spell.IsSkillshot)
                 {
                     if(spell.Type == SkillshotType.SkillshotLine)
                     LCast(spell,target,ExtraTargetDistance,ALPHA);
                     else if(spell.Type == SkillshotType.SkillshotCircle)
                     {
                     var ctarget = TargetSelector.GetTarget(spell.Range + spell.Width/2, spell.DamageType, true);
                     CCast(spell,ctarget);
                     }
                     else if(spell.Type == SkillshotType.SkillshotCone)
                     spell.Cast(target);
                 }
                 else if(!spell.IsSkillshot)
                 spell.Cast(target);
                 else
                 spell.AOECast(target);
             }
         }
         else if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed && Menu.Item("Harass.Use " + spell.Slot.ToString(), true) != null)
         {
             if(Menu.Item("Harass.Use " + spell.Slot.ToString(), true).GetValue<bool>()
             && spell.IsReady() && HM)
             {
                 if(spell.IsSkillshot)
                 {
                     if(spell.Type == SkillshotType.SkillshotLine)
                     LCast(spell,target,ExtraTargetDistance,ALPHA);
                     else if(spell.Type == SkillshotType.SkillshotCircle)
                     {
                     var ctarget = TargetSelector.GetTarget(spell.Range + spell.Width/2, spell.DamageType, true);
                     CCast(spell,ctarget);
                     }
                     else if(spell.Type == SkillshotType.SkillshotCone)
                     spell.Cast(target);
                 }
                 else if(!spell.IsSkillshot)
                 spell.Cast(target);
                 else
                 spell.AOECast(target);
             }
         }
     }
     if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear)
     {            
         var Minions = MinionManager.GetMinions(spell.Range, MinionTypes.All, MinionTeam.Enemy);
         var Mobs = MinionManager.GetMinions(spell.Range, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth);
         
         if (Mobs.Count > 0 && Menu.Item("Jungleclear.Use " + spell.Slot.ToString(), true) != null)
         {
             if(Menu.Item("Jungleclear.Use " + spell.Slot.ToString(), true).GetValue<bool>()
             && spell.IsReady() && LHM)
             {
                 if(spell.IsSkillshot)
                 {
                     if(spell.Type == SkillshotType.SkillshotLine)
                     LCast(spell,Mobs[0],ExtraTargetDistance,ALPHA);
                     else if(spell.Type == SkillshotType.SkillshotCircle)
                     CCast(spell,Mobs[0]);
                     else if(spell.Type == SkillshotType.SkillshotCone)
                     spell.Cast(Mobs[0]);
                 }
                 else if(!spell.IsSkillshot)
                 spell.Cast(Mobs[0]);
                 else
                 spell.AOECast(Mobs[0]);
             }
         }
         if (Minions.Count > 0 && Menu.Item("Laneclear.Use " + spell.Slot.ToString(), true) != null)
         {
             if(Menu.Item("Laneclear.Use " + spell.Slot.ToString(), true).GetValue<bool>()
             && spell.IsReady() && LM)
             {
                 if(spell.IsSkillshot)
                 {
                     if(spell.Type == SkillshotType.SkillshotLine)
//.........这里部分代码省略.........
开发者ID:SmokyBot,项目名称:LS,代码行数:101,代码来源:AIO+Func.cs


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