Beispiel #1
0
        /// <summary>
        ///     Raises the <see cref="E:Draw" /> event.
        /// </summary>
        /// <param name="args">
        ///     The <see cref="EventArgs" /> instance containing the event data.
        /// </param>
        public void OnDraw(EventArgs args)
        {
            if (StaticObjects.Player.IsDead)
            {
                return;
            }

            if (StaticObjects.ProjectMenu.Item(Names.Menu.DrawingItemBase + ".Minion." + "Circle.LastHitHelper").GetValue <Circle>().Active)
            {
                foreach (var minion in Minions.GetEnemyMinions(StaticObjects.Player.AttackRange + 150))
                {
                    if (StaticObjects.Player.GetAutoAttackDamage(minion) - 5 > minion.Health) // Is killable
                    {
                        Render.Circle.DrawCircle(minion.Position, minion.BoundingRadius - 10, StaticObjects.ProjectMenu.Item(Names.Menu.DrawingItemBase + ".Minion." + "Circle.LastHitHelper").GetValue <Circle>().Color, 3);
                    }
                }
            }
        }