本文整理汇总了C#中Obj_AI_Minion.IsValidTarget方法的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Minion.IsValidTarget方法的具体用法?C# Obj_AI_Minion.IsValidTarget怎么用?C# Obj_AI_Minion.IsValidTarget使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Obj_AI_Minion
的用法示例。
在下文中一共展示了Obj_AI_Minion.IsValidTarget方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IsImportant
public static bool IsImportant(Obj_AI_Minion minion)
{
return minion.IsValidTarget()
&& (minion.Name.ToLower().Contains("baron")
|| minion.Name.ToLower().Contains("dragon")
|| minion.Name.ToLower().Contains("herald"));
}
示例2: GetJungleSafeTumblePos
private Vector3 GetJungleSafeTumblePos(Obj_AI_Minion target)
{
var cursorPos = Game.CursorPos;
if (IsSafeTumblePos(cursorPos)) return cursorPos;
if (!target.IsValidTarget()) return Vector3.Zero;
var targetPosition = target.ServerPosition;
var myTumbleRangeCircle =
new Geometry.Circle(ObjectManager.Player.ServerPosition.To2D(), 300).ToPolygon().ToClipperPath();
var goodCandidates = from p in myTumbleRangeCircle
select new Vector2(p.X, p.Y).To3D() into v3
let dist = v3.Distance(targetPosition)
where dist > menu.Item("QMinDist", true).GetValue<Slider>().Value && dist < 500
select v3;
return goodCandidates.OrderByDescending(candidate => candidate.Distance(cursorPos)).FirstOrDefault();
}
示例3: IsInRangeQ
private static bool IsInRangeQ(Obj_AI_Minion minion)
{
return minion.IsValidTarget(Math.Min(465 + minion.BoundingRadius / 3, 480));
}
示例4: JungleSmite
private void JungleSmite()
{
try
{
if (!getKeyBindItem("ElSmite.Activated"))
{
return;
}
Minion = (Obj_AI_Minion) EntityManager.MinionsAndMonsters.Monsters.FirstOrDefault(buff => this.Player.IsInRange(buff, 570) && (buff.Name.StartsWith(buff.BaseSkinName) || BuffsThatActuallyMakeSenseToSmite.Contains(buff.BaseSkinName)) && !buff.Name.Contains("Mini") && !buff.Name.Contains("Spawn"));
if (Minion == null)
{
return;
}
if (getCheckBoxItem(Minion.CharData.BaseSkinName))
{
if (this.SmiteSpell.IsReady())
{
if (Minion.IsValidTarget(570f))
{
if (this.Player.GetSummonerSpellDamage(Minion, LeagueSharp.Common.Damage.SummonerSpell.Smite) >= Minion.Health && this.SmiteSpell.CanCast(Minion))
{
this.SmiteSpell.Cast(Minion);
}
}
if (getCheckBoxItem("Smite.Spell"))
{
this.ChampionSpellSmite((float)this.Player.GetSummonerSpellDamage(Minion, LeagueSharp.Common.Damage.SummonerSpell.Smite), Minion);
}
}
}
}
catch (Exception e)
{
Console.WriteLine("An error occurred: '{0}'", e);
}
}
示例5: UseE
public override void UseE(Obj_AI_Minion minion)
{
if (E.IsReady() && minion.IsValidTarget(E.Range))
{
foreach (var buff in minion.Buffs.Where(buff => buff.DisplayName.ToLower() == "twitchdeadlyvenom").Where(buff => buff.Count == 6))
{
E.Cast();
}
}
}