示例#1
0
        public static double GetPDamage(Obj_AI_Base target)
        {
            int singleDagger =
                DaggerDamages[Player.Instance.Level - 1] +
                (int)(Player.Instance.TotalAttackDamage - Player.Instance.BaseAttackDamage) +
                (int)(GetAPMultipler() * Player.Instance.TotalMagicalDamage);

            int totalDamage = 0;

            foreach (var dagger in Dagger.GetDaggers())
            {
                if (target.Position.IsInRange(dagger, SpellManager.W.Range + 75))
                {
                    totalDamage += singleDagger;
                }
            }

            return(totalDamage * (100 - target.PercentMagicReduction) / 100);
        }
示例#2
0
        private static void OnDraw(EventArgs args)
        {
            if (Player.Instance.IsDead)
            {
                return;
            }

            if (Game.CursorPos.IsValid() && ConfigList.Drawing.DrawCJ)
            {
                Circle.Draw(SharpDX.Color.Aqua, ConfigList.Flee.JumpCursorRange, Game.CursorPos);
            }

            foreach (var spell in SpellManager.AllSpells)
            {
                switch (spell.Slot)
                {
                case SpellSlot.Q:
                    if (!ConfigList.Drawing.DrawQ)
                    {
                        continue;
                    }
                    break;

                case SpellSlot.W:
                    if (!ConfigList.Drawing.DrawW)
                    {
                        continue;
                    }
                    break;

                case SpellSlot.E:
                    if (!ConfigList.Drawing.DrawE)
                    {
                        continue;
                    }
                    break;

                case SpellSlot.R:
                    if (!ConfigList.Drawing.DrawR)
                    {
                        continue;
                    }
                    break;
                }
                Circle.Draw(spell.GetColor(), spell.Range, Player.Instance);
            }

            if (ConfigList.Drawing.DrawDagger)
            {
                foreach (var dagger in Dagger.GetDaggers())
                {
                    if (dagger.CountEnemyChampionsInRange(375) > 0 || dagger.CountEnemyMinionsInRange(375) > 0)
                    {
                        Circle.Draw(Color.Green, 150, dagger);
                    }
                    else
                    {
                        Circle.Draw(Color.Red, 150, dagger);
                    }
                }
            }
        }