本文整理汇总了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)
//.........这里部分代码省略.........