本文整理汇总了C#中Obj_AI_Base.CountEnemyChampionsInRange方法的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Base.CountEnemyChampionsInRange方法的具体用法?C# Obj_AI_Base.CountEnemyChampionsInRange怎么用?C# Obj_AI_Base.CountEnemyChampionsInRange使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Obj_AI_Base
的用法示例。
在下文中一共展示了Obj_AI_Base.CountEnemyChampionsInRange方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetEDamage
public static double GetEDamage(Obj_AI_Base target)
{
if (SpellManager.E.IsReady())
{
int spins = MaxESpins.Where(e => Player.Instance.Level <= e.Key).FirstOrDefault().Value;
if (target.CountEnemyChampionsInRange(250) > 0)
return Player.Instance.CalculateDamageOnUnit(target, DamageType.Physical,
((new float[] { 0, 14, 18, 22, 26, 30 }[SpellManager.E.Level] + new float[] { 0, 0.34f, 0.35f, 0.36f, 0.37f, 0.38f }[SpellManager.E.Level] * Player.Instance.TotalAttackDamage) * spins));
else
return Player.Instance.CalculateDamageOnUnit(target, DamageType.Physical,
((new float[] { 0, 18.62f, 23.94f, 29.26f, 34.58f, 39.9f }[SpellManager.E.Level] + new float[] { 0, 0.4522f, 0.4655f, 0.4788f, 0.4921f, 0.5054f }[SpellManager.E.Level] * Player.Instance.TotalAttackDamage) * spins));
}
return 0;
}
示例2: OnUnkillableMinion
public static void OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
{
if (!Config.Farm.Menu.GetCheckBoxValue("Config.Farm.Q.Unkillable") || Player.Instance.HasBuff("GarenE")) return;
if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
{
if (SpellManager.Q.IsReady() && target.CountEnemyChampionsInRange(550) <= 1 && Player.Instance.HealthPercent >= 30)
{
if (target.IsInRange(Player.Instance, Player.Instance.GetAutoAttackRange()))
{
SpellManager.Q.Cast();
Orbwalker.ResetAutoAttack();
Core.DelayAction(() => Player.IssueOrder(GameObjectOrder.AttackTo, target), Config.Farm.Menu.GetSliderValue("Config.Farm.Q.Delay"));
}
}
}
}