Beispiel #1
0
        private void OnCreateObj(GameObject obj, EventArgs args)
        {
            if (obj.Name != "missile" && obj.IsEnemy && obj.Distance(ObjectManager.Player.ServerPosition) < 900)
            {
                //J4 wall E
                if (obj.Name.ToLower() == "jarvanivwall")
                {
                    var enemyJ4 = ValidTargets.First(h => h.CharData.BaseSkinName.Contains("Jarvan"));
                    if (enemyJ4 != null && enemyJ4.LSIsValidTarget())
                    {
                        E.Cast(enemyJ4.ServerPosition);
                    }
                }

                /*if (obj.Name.ToLower().Contains("soraka_base_e_rune.troy") && EntityManager.Heroes.Enemies.Count(e => e.IsHPBarRendered && e.Distance(obj.Position) < 300) > 0)
                 * {
                 *  Q.Cast(obj.Position);
                 * }*/
                if (EntityManager.Heroes.Allies.All(h => h.CharData.BaseSkinName != "Rengar"))
                {
                    if (obj.Name == "Rengar_LeapSound.troy")
                    {
                        E.Cast(obj.Position);
                    }
                    if (obj.Name == "Rengar_Base_P_Buf_Max.troy" || obj.Name == "Rengar_Base_P_Leap_Grass.troy")
                    {
                        E.Cast(ObjectManager.Player.ServerPosition);
                    }
                }
            }
        }
Beispiel #2
0
 private void OnCreateObj(GameObject obj, EventArgs args)
 {
     if (obj.Name != "missile" && obj.IsEnemy && obj.Distance(ObjectManager.Player.ServerPosition) < 900)
     {
         //J4 wall E
         if (obj.Name.ToLower() == "jarvanivwall")
         {
             var enemyJ4 = ValidTargets.First(h => h.CharData.BaseSkinName.Contains("Jarvan"));
             if (enemyJ4 != null && enemyJ4.IsValidTarget())
             {
                 this.CastE(enemyJ4.ServerPosition);
             }
         }
         if (obj.Name.ToLower().Contains("soraka_base_e_rune.troy") &&
             GameObjects.EnemyHeroes.Count(e => e.IsHPBarRendered && e.Distance(obj.Position) < 300) > 0)
         {
             this.Q.Cast(obj.Position);
         }
         var rengo = GameObjects.EnemyHeroes.FirstOrDefault(e => e.CharData.BaseSkinName == "Rengar");
         if (rengo != null)
         {
             //rengar ult
             if (obj.Name == "Rengar_LeapSound.troy")
             {
                 CastE(obj.Position);
             }
             //rengar passive brush jump (atm the object pos is the brush where it came from so
             //                                  we're just gonna assume he's gonna jump on us)
             if (obj.Position.Distance(ObjectManager.Player.Position) < 725 && (obj.Name == "Rengar_Base_P_Buf_Max.troy" || obj.Name == "Rengar_Base_P_Leap_Grass.troy"))
             {
                 CastE(ObjectManager.Player.ServerPosition);
             }
         }
     }
 }