本文整理匯總了C#中AIHeroClient.isPoisoned方法的典型用法代碼示例。如果您正苦於以下問題:C# AIHeroClient.isPoisoned方法的具體用法?C# AIHeroClient.isPoisoned怎麽用?C# AIHeroClient.isPoisoned使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類AIHeroClient
的用法示例。
在下文中一共展示了AIHeroClient.isPoisoned方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Harass
static void Harass(AIHeroClient target)
{
if (Spells[SpellSlot.Q].IsReady() && CassioUtils.getCheckBoxItem(CassiopeiaMenu.Harass, "Harass.UseQ"))
{
//Spells[SpellSlot.Q].SPredictionCast(target, CassioUtils.GetHitChance("Hitchance.Q"));
var pred = Spells[SpellSlot.Q].GetPrediction(target, true);
if (pred.Hitchance >= CassioUtils.QChance())
{
Spells[SpellSlot.Q].Cast(pred.CastPosition);
}
}
if (Spells[SpellSlot.W].IsReady() && CassioUtils.getCheckBoxItem(CassiopeiaMenu.Harass, "Harass.UseW"))
{
//Spells[SpellSlot.W].SPredictionCast(target, CassioUtils.GetHitChance("Hitchance.W"));
var pred = Spells[SpellSlot.W].GetPrediction(target, true);
if (pred.Hitchance >= CassioUtils.WChance())
{
Spells[SpellSlot.W].Cast(pred.CastPosition);
}
}
if (Spells[SpellSlot.E].IsReady() && CassioUtils.getCheckBoxItem(CassiopeiaMenu.Harass, "Harass.UseE"))
{
if (target.isPoisoned())
{
if ((Utils.GameTimeTickCount - laste) > edelay)
{
Spells[SpellSlot.E].Cast(target);
laste = Utils.GameTimeTickCount;
}
}
}
}
示例2: Combo
private static void Combo(AIHeroClient target)
{
if (Spells[SpellSlot.Q].IsReady() && CassioUtils.getCheckBoxItem(CassiopeiaMenu.Combo, "Combo.UseQ"))
{
//Spells[SpellSlot.Q].SPredictionCast(target, CassioUtils.GetHitChance("Hitchance.Q"));
var pred = Spells[SpellSlot.Q].GetPrediction(target, true);
if (pred.Hitchance >= CassioUtils.QChance())
{
Spells[SpellSlot.Q].Cast(pred.CastPosition);
}
}
if (Spells[SpellSlot.W].IsReady() && CassioUtils.getCheckBoxItem(CassiopeiaMenu.Combo, "Combo.UseW"))
{
//Spells[SpellSlot.W].SPredictionCast(target, CassioUtils.GetHitChance("Hitchance.W"));
var pred = Spells[SpellSlot.W].GetPrediction(target, true);
if (pred.Hitchance > CassioUtils.WChance())
{
Spells[SpellSlot.W].Cast(pred.CastPosition);
}
}
if (Spells[SpellSlot.E].IsReady() && CassioUtils.getCheckBoxItem(CassiopeiaMenu.Combo, "Combo.UseE"))
{
if (CassioUtils.getCheckBoxItem(CassiopeiaMenu.Combo, "Combo.useepoison") && target.isPoisoned())
{
if ((Utils.GameTimeTickCount - laste) > edelay)
{
Spells[SpellSlot.E].Cast(target);
laste = Utils.GameTimeTickCount;
}
}
else if (!CassioUtils.getCheckBoxItem(CassiopeiaMenu.Combo, "Combo.useepoison"))
{
if ((Utils.GameTimeTickCount - laste) > edelay)
{
Spells[SpellSlot.E].Cast(target);
laste = Utils.GameTimeTickCount;
}
}
}
/*
if (SpellSlot.R.IsReady() && CassioUtils.Active("Combo.UseR"))
{
var pred = Spells[SpellSlot.R].GetPrediction(target, true);
var enemshit = pred.CastPosition.GetEnemiesInRange(Spells[SpellSlot.R].Width);
var counthit = enemshit.Count;
var hitfacing = enemshit.Count(x => x.IsFacing(Player));
var anymovingtome = enemshit.Any(x => x.isMovingToMe());
if (hitfacing >= CassioUtils.GetSlider("Combo.Rcount") && pred.Hitchance >= CassioUtils.GetHitChance("Hitchance.R") && anymovingtome || CassioUtils.Active("Combo.UseRNF") && counthit >= CassioUtils.GetSlider("Combo.Rcountnf") && pred.Hitchance >= CassioUtils.GetHitChance("Hitchance.R"))
{
Spells[SpellSlot.R].Cast(pred.CastPosition);
}
}
* */
}