當前位置: 首頁>>代碼示例>>C#>>正文


C# AIHeroClient.isPoisoned方法代碼示例

本文整理匯總了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;
                    }
                }
            }
        }
開發者ID:yashine59fr,項目名稱:PortAIO-1,代碼行數:37,代碼來源:Cassiopeia.cs

示例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);
                    }
                }
             * */
        }
開發者ID:yashine59fr,項目名稱:PortAIO-1,代碼行數:59,代碼來源:Cassiopeia.cs


注:本文中的AIHeroClient.isPoisoned方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。