Exemplo n.º 1
0
        private static float GetComboDamage(Obj_AI_Base enemy)
        {
            var comboDamage = 0d;

            if (q.IsReady())
            {
                comboDamage += Player.GetSpellDamage(enemy, SpellSlot.Q);
            }

            if (w.IsReady())
            {
                comboDamage += Player.GetSpellDamage(enemy, SpellSlot.W);
            }

            if (r.IsReady())
            {
                comboDamage += Player.GetSpellDamage(enemy, SpellSlot.R);
            }

            if (ignite.IsReady() && enemy.Health < Player.GetSummonerSpellDamage(enemy, Damage.SummonerSpell.Ignite) + comboDamage)
            {
                comboDamage += Player.GetSummonerSpellDamage(enemy, Damage.SummonerSpell.Ignite);
            }

            return((float)comboDamage);
        }
Exemplo n.º 2
0
        //Calculate Combo Damage
        private static float GetComboDamage(Obj_AI_Base enemy)
        {
            var comboDamage = 0d;

            if (Q.IsReady())
            {
                comboDamage += Player.GetSpellDamage(enemy, SpellSlot.Q);
            }

            if (W.IsReady())
            {
                comboDamage += Player.GetSpellDamage(enemy, SpellSlot.W);
            }

            if (R.IsReady())
            {
                comboDamage += Player.GetSpellDamage(enemy, SpellSlot.R);
            }

            if (Ignite.IsReady())
            {
                comboDamage += Player.GetSummonerSpellDamage(enemy, Damage.SummonerSpell.Ignite);
            }

            return((float)comboDamage);
        }
Exemplo n.º 3
0
        private static float RivenDamageQ(SpellDataInst spell, Obj_AI_Hero src, Obj_AI_Hero dsc)
        {
            double dmg = 0;

            if (spell.IsReady())
            {
                dmg += src.CalcDamage(dsc, Damage.DamageType.Physical,
                                      (-10 + (spell.Level * 20) +
                                       (0.35 + (spell.Level * 0.05)) * (src.FlatPhysicalDamageMod + src.BaseAttackDamage)) * 3);
            }
            return((float)dmg);
        }
Exemplo n.º 4
0
        private static float RivenDamageQ(SpellDataInst spell, AIHeroClient src, AIHeroClient dsc)
        {
            double dmg = 0;

            if (spell.IsReady())
            {
                dmg += src.CalcDamage(
                    dsc, LeagueSharp.Common.Damage.DamageType.Physical,
                    (-10 + (spell.Level * 20) +
                     (0.35 + (spell.Level * 0.05)) * (src.FlatPhysicalDamageMod + src.BaseAttackDamage)) * 3);
            }
            return((float)dmg);
        }
Exemplo n.º 5
0
 private static float RivenDamageQ(SpellDataInst spell, AIHeroClient src, AIHeroClient dsc)
 {
     double dmg = 0;
     if (spell.IsReady())
     {
         dmg += src.CalcDamage(
             dsc, DamageType.Physical,
             (-10 + spell.Level*20 +
              (0.35 + spell.Level*0.05)*(src.FlatPhysicalDamageMod + src.BaseAttackDamage))*3);
     }
     return (float) dmg;
 }
Exemplo n.º 6
0
        private void Draw(EventArgs args)
        {
            if (_drawR.Active)
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, 375, _drawR.Color);
            }
            if (_drawFlashUlt.Active && _r.IsReady())
            {
                foreach (var enemy in HeroManager.Enemies.Where(enemy => enemy.IsValidTarget(_flash != null && _flash.IsReady() ? 375 + 425 : 375) && _r.IsKillable(enemy)))
                {
                    var screenPos = Drawing.WorldToScreen(enemy.Position);
                    Drawing.DrawText(screenPos.X - 50, screenPos.Y - 50, _drawFlashUlt.Color, "Flash-R Possible!");
                }
            }

            //foreach (var enemy in HeroManager.Enemies.Where(enemy => enemy.IsValidTarget()))
            //{
            //    var screenPos = Drawing.WorldToScreen(enemy.Position);
            //    Drawing.DrawText(screenPos.X - 50, screenPos.Y - 50, _drawFlashUlt.Color, (enemy.Health - HealthPrediction.GetHealthPrediction(enemy,1)).ToString());
            //}

            //Drawing.DrawText(200, 100, Color.Red, ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).GetState().ToString() + " " + (int)ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).GetState());
        }
Exemplo n.º 7
0
 public static bool CanCast(this SpellDataInst spell)
 =>
 spell.IsReady() &&
 ObjectManager.Player.Spellbook.Spells.FirstOrDefault(x => x.Name == spell.Name) != null;