コード例 #1
0
 static void Harass(Obj_AI_Hero target)
 {
     if (Spells[SpellSlot.Q].IsReady() && CassioUtils.Active("Harass.UseQ"))
     {
         var pred = Spells[SpellSlot.Q].GetPrediction(target, true);
         if (pred.Hitchance >= CassioUtils.GetHitChance("Hitchance.Q"))
         {
             Spells[SpellSlot.Q].Cast(pred.CastPosition);
         }
     }
     if (Spells[SpellSlot.W].IsReady() && CassioUtils.Active("Harass.UseW"))
     {
         var pred = Spells[SpellSlot.W].GetPrediction(target, true);
         if (pred.Hitchance >= CassioUtils.GetHitChance("Hitchance.W"))
         {
             Spells[SpellSlot.W].Cast(pred.CastPosition);
         }
     }
     if (Spells[SpellSlot.E].IsReady() && CassioUtils.Active("Harass.UseE"))
     {
         if (target.isPoisoned())
         {
             if ((Utils.GameTimeTickCount - laste) > edelay)
             {
                 Spells[SpellSlot.E].Cast(target);
                 laste = Utils.GameTimeTickCount;
             }
         }
     }
 }
コード例 #2
0
ファイル: Cassiopeia.cs プロジェクト: cctv85782/LeagueSharp-8
        private static void Combo(Obj_AI_Hero target)
        {
            if (Spells[SpellSlot.Q].IsReady() && CassioUtils.Active("Combo.UseQ"))
            {
                //Spells[SpellSlot.Q].SPredictionCast(target, CassioUtils.GetHitChance("Hitchance.Q"));

                var pred = Spells[SpellSlot.Q].GetPrediction(target, true);
                if (pred.Hitchance >= CassioUtils.GetHitChance("Hitchance.Q"))
                {
                    Spells[SpellSlot.Q].Cast(pred.CastPosition);
                }
            }
            if (Spells[SpellSlot.W].IsReady() && CassioUtils.Active("Combo.UseW"))
            {
                //Spells[SpellSlot.W].SPredictionCast(target, CassioUtils.GetHitChance("Hitchance.W"));

                var pred = Spells[SpellSlot.W].GetPrediction(target, true);
                if (pred.Hitchance > CassioUtils.GetHitChance("Hitchance.W"))
                {
                    Spells[SpellSlot.W].Cast(pred.CastPosition);
                }
            }
            if (Spells[SpellSlot.E].IsReady() && CassioUtils.Active("Combo.UseE"))
            {
                if (CassioUtils.Active("Combo.useepoison") && target.isPoisoned())
                {
                    if ((Utils.GameTimeTickCount - laste) > edelay)
                    {
                        Spells[SpellSlot.E].Cast(target);
                        laste = Utils.GameTimeTickCount;
                    }
                }
                else if (!CassioUtils.Active("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);
             *      }
             *  }
             * */
        }
コード例 #3
0
ファイル: Cassiopeia.cs プロジェクト: 47110572/LeagueSharp-6
        static void Harass(Obj_AI_Hero target)
        {
            if (Spells[SpellSlot.Q].IsReady() && CassioUtils.Active("Harass.UseQ"))
            {
				Spells[SpellSlot.Q].SPredictionCast(target, CassioUtils.GetHitChance("Hitchance.Q"));
				/*
                var pred = Spells[SpellSlot.Q].GetPrediction(target, true);
                if (pred.Hitchance >= CassioUtils.GetHitChance("Hitchance.Q"))
                {
                    Spells[SpellSlot.Q].Cast(pred.CastPosition);
                }
				*/
			}
            if (Spells[SpellSlot.W].IsReady() && CassioUtils.Active("Harass.UseW"))
            {
				Spells[SpellSlot.W].SPredictionCast(target, CassioUtils.GetHitChance("Hitchance.W"));
				/*
                var pred = Spells[SpellSlot.W].GetPrediction(target, true);
                if (pred.Hitchance >= CassioUtils.GetHitChance("Hitchance.W"))
                {
                    Spells[SpellSlot.W].Cast(pred.CastPosition);
                }
				*/

			}
            if (Spells[SpellSlot.E].IsReady() && CassioUtils.Active("Harass.UseE"))
            {
                if (target.isPoisoned())
                {
                    if ((Utils.GameTimeTickCount - laste) > edelay)
                    {
                        Spells[SpellSlot.E].Cast(target);
                        laste = Utils.GameTimeTickCount;
                    }
                }
            }
        }
コード例 #4
0
ファイル: Cassiopeia.cs プロジェクト: 47110572/LeagueSharp-6
        private static void Combo(Obj_AI_Hero target)
        {
            if (Spells[SpellSlot.Q].IsReady() && CassioUtils.Active("Combo.UseQ"))
            {
	            Spells[SpellSlot.Q].SPredictionCast(target, CassioUtils.GetHitChance("Hitchance.Q"));
	            /*
                var pred = Spells[SpellSlot.Q].GetPrediction(target, true);
                if (pred.Hitchance >= CassioUtils.GetHitChance("Hitchance.Q"))
                {
                    Spells[SpellSlot.Q].Cast(pred.CastPosition);
                }
				*/
            }
            if (Spells[SpellSlot.W].IsReady() && CassioUtils.Active("Combo.UseW"))
            {
				Spells[SpellSlot.W].SPredictionCast(target, CassioUtils.GetHitChance("Hitchance.W"));
				/*
                var pred = Spells[SpellSlot.W].GetPrediction(target, true);
                if (pred.Hitchance > CassioUtils.GetHitChance("Hitchance.W"))
                {
                    Spells[SpellSlot.W].Cast(pred.CastPosition);
                }
				*/
			}
            if (Spells[SpellSlot.E].IsReady() && CassioUtils.Active("Combo.UseE"))
            {
                if (CassioUtils.Active("Combo.useepoison") && target.isPoisoned())
                {
                    if ((Utils.GameTimeTickCount - laste) > edelay)
                    {
                        Spells[SpellSlot.E].Cast(target);
                        laste = Utils.GameTimeTickCount;
                    }
                }
                else if (!CassioUtils.Active("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);
                    }
                }
             * */
        }