本文整理匯總了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);
//.........這裏部分代碼省略.........