本文整理汇总了C#中AIHeroClient.CanStun方法的典型用法代码示例。如果您正苦于以下问题:C# AIHeroClient.CanStun方法的具体用法?C# AIHeroClient.CanStun怎么用?C# AIHeroClient.CanStun使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIHeroClient
的用法示例。
在下文中一共展示了AIHeroClient.CanStun方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GameOnOnUpdate
private static void GameOnOnUpdate(EventArgs args)
{
JumpTarget = TargetSelector.GetTarget(Q.Range*3, DamageType.Physical);
if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
{
return;
}
if (!JumpTarget.LSIsValidTarget())
{
return;
}
if (!JumpObject.LSIsValidTarget(Q.Range))
{
return;
}
if (!Q.IsReady())
{
return;
}
if (!getKeyBindItem(MenuLocal, "Jump.Enabled"))
{
return;
}
var jumpMode = getBoxItem(MenuLocal, "Jump.Mode");
if (jumpMode != 0)
{
switch (jumpMode)
{
case 1:
{
Q.CastOnUnit(JumpObject);
break;
}
case 2:
{
if (JumpTarget.CanStun())
{
Q.CastOnUnit(JumpObject);
}
break;
}
case 3:
{
if (JumpTarget.Health < CommonMath.GetComboDamage(JumpTarget))
{
Q.CastOnUnit(JumpObject);
}
break;
}
case 4:
{
if (JumpTarget.CanStun() || JumpTarget.Health < CommonMath.GetComboDamage(JumpTarget))
{
Q.CastOnUnit(JumpObject);
}
break;
}
}
}
//if (!JumpTarget.LSIsValidTarget(Q.Range) && !JumpTarget.LSIsValidTarget(Q.Range + Orbwalking.GetRealAutoAttackRange(null) + 65))
//{
// ObjectManager.Player.IssueOrder(GameObjectOrder.MoveTo, JumpTarget);
//}
return;
/*
if (JumpTarget.UnderTurret(true) && getBoxItem(MenuLocal, "Jump.TurretControl") == 0)
{
return;
}
if (JumpTarget.UnderTurret(true)
&& getBoxItem(MenuLocal, "Jump.TurretControl") == 1
&& JumpTarget.Health < Common.CommonMath.GetComboDamage(JumpTarget))
{
Q.CastOnUnit(JumpObject);
}
var jumpQ = getBoxItem(MenuLocal, "Jump.TurretControl");
switch (jumpQ)
{
case 0:
{
Q.CastOnUnit(JumpObject);
break;
}
case 1:
{
if (JumpTarget.CanStun())
{
Q.CastOnUnit(JumpObject);
//.........这里部分代码省略.........