Ejemplo n.º 1
0
        private void ControlTibbers(EventArgs args)
        {
            if ((Tibbers == null) || (!Tibbers.IsValid) || (!annie.GetParamBool("autotibbers")))
            {
                return;
            }

            Obj_AI_Base target = FindTarget();

            if ((target != null))
            {
                //Method bugged == plz fix the Common
                //annie.Player.IssueOrder(
                //    Tibbers.Distance(target.Position) > 200 ? GameObjectOrder.MovePet : GameObjectOrder.AutoAttackPet,
                //    target);

                if (Tibbers.Distance(target.Position) > 200)
                {
                    annie.Player.IssueOrder(GameObjectOrder.MovePet, target);
                }
                else
                {
                    Tibbers.IssueOrder(GameObjectOrder.AttackUnit, target);
                }
            }
        }
Ejemplo n.º 2
0
        private void DrawAvailableRange(EventArgs args)
        {
            if (!annie.GetParamBool("drawskillranges"))
            {
                return;
            }

            if (annie.GetParamKeyBind("flashtibbers") && (annie.Spells.R.IsReady()) &&
                (FlashSpell.IsReady(annie.Player)) && (annie.CheckStun()))
            {
                Render.Circle.DrawCircle(annie.Player.Position, annie.Spells.RFlash.Range, Color.DarkGreen, 3);
            }
            else
            {
                Render.Circle.DrawCircle(annie.Player.Position, annie.Spells.MaxRangeCombo, Color.DarkGreen, 3);
            }
        }
Ejemplo n.º 3
0
 private bool CanAttack(AIHeroClient enemy)
 {
     if (enemy == null)
     {
         return(false);
     }
     if (annie.GetParamBool("combo" + enemy.ChampionName.ToLowerInvariant()))
     {
         return(true);
     }
     else if (enemy.HealthPercent < 30)
     {
         return(true);
     }
     else if (annie.Player.GetEnemiesInRange(1100f).Count == 1)
     {
         return(true);
     }
     else
     {
         return
             (!HeroManager.Enemies.Where(x => x.Distance(Champion.Player) < 1100f && !x.IsDead && !x.IsZombie)
              .Any(
                  x =>
                  x.ChampionName != enemy.ChampionName &&
                  annie.GetParamBool("combo" + x.ChampionName.ToLowerInvariant())));
     }
 }