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); }
//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); }
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); }
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); }
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; }
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()); }
public static bool CanCast(this SpellDataInst spell) => spell.IsReady() && ObjectManager.Player.Spellbook.Spells.FirstOrDefault(x => x.Name == spell.Name) != null;