本文整理汇总了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);
}
}
* */
}