本文整理汇总了C#中AIHeroClient.UnderTurret方法的典型用法代码示例。如果您正苦于以下问题:C# AIHeroClient.UnderTurret方法的具体用法?C# AIHeroClient.UnderTurret怎么用?C# AIHeroClient.UnderTurret使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIHeroClient
的用法示例。
在下文中一共展示了AIHeroClient.UnderTurret方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Combo
private void Combo(AIHeroClient target)
{
if (target == null)
{
return;
}
var cmbDmg = ComboDamage(target);
var dist = (float) (Q.Range + player.MoveSpeed*2.5);
if (ShacoClone && !GhostDelay && getCheckBoxItem(menuC, "useClone") &&
!getCheckBoxItem(menuM, "autoMoveClone"))
{
moveClone();
}
if (getCheckBoxItem(menuC, "WaitForStealth") && ShacoStealth && cmbDmg < target.Health)
{
return;
}
if (getCheckBoxItem(menuC, "useq") && Q.IsReady() && Game.CursorPos.LSDistance(target.Position) < 250 && target.LSDistance(player) < dist && (target.LSDistance(player) >= getSliderItem(menuC, "useqMin") || (cmbDmg > target.Health && player.CountEnemiesInRange(2000) == 1)))
{
if (target.LSDistance(player) < Q.Range)
{
Q.Cast(Prediction.GetPrediction(target, 0.5f).UnitPosition, getCheckBoxItem(config, "packets"));
return;
}
else
{
if (!CheckWalls(target) || Helpers.Environment.Map.GetPath(player, target.Position) < dist)
{
Q.Cast(player.Position.LSExtend(target.Position, Q.Range), getCheckBoxItem(config, "packets"));
return;
}
}
}
var hasIgnite = player.Spellbook.CanUseSpell(player.GetSpellSlot("SummonerDot")) == SpellState.Ready;
if (getCheckBoxItem(menuC, "usew") && W.IsReady() && !target.UnderTurret(true) &&
target.Health > cmbDmg && player.LSDistance(target) < W.Range)
{
HandleW(target);
}
if (getCheckBoxItem(menuC, "usee") && E.CanCast(target))
{
E.CastOnUnit(target, getCheckBoxItem(config, "packets"));
}
if (getCheckBoxItem(menuC, "user") && R.IsReady() && !ShacoClone && target.HealthPercent < 75 &&
cmbDmg < target.Health && target.HealthPercent > cmbDmg && target.HealthPercent > 25)
{
R.Cast(getCheckBoxItem(config, "packets"));
}
if (getCheckBoxItem(menuC, "useIgnite") &&
player.GetSummonerSpellDamage(target, Damage.SummonerSpell.Ignite) > target.Health && hasIgnite)
{
player.Spellbook.CastSpell(player.GetSpellSlot("SummonerDot"), target);
}
}