本文整理匯總了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);
}
}