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