public static float GetTotalDamage(AIHeroClient target) { // Auto attack var damage = Program.Player.GetAutoAttackDamage(target); // Q if (Program.Q.IsReady()) { damage += Program.Q.GetRealDamage(target) + MariagiospaldaMenu.ComboQ1(); } // W if (Program.W.IsReady()) { damage += Program.W.GetRealDamage(target); } // E if (Program.E.IsReady()) { damage += Program.E.GetRealDamage(target); } // R if (Program.R.IsReady()) { damage += Program.R.GetRealDamage(target) + MariagiospaldaMenu.ComboR1(); } return(damage); }
private static void KillSteal() { foreach ( var target in EntityManager.Heroes.Enemies.Where( hero => hero.IsValidTarget(R.Range) && !hero.IsDead && !hero.IsZombie && hero.HealthPercent <= 25)) { var predQ = Q.GetPrediction(target); var predE = E.GetPrediction(target); if (MariagiospaldaMenu.KillstealR() && R.IsReady() && target.Health + target.AttackShield + MariagiospaldaMenu.ComboR1() <= Player.GetSpellDamage(target, SpellSlot.R)) { R.Cast(target); } if (MariagiospaldaMenu.KillstealW() && target.Health + target.AttackShield < Player.GetSpellDamage(target, SpellSlot.W) && Player.Mana >= 100) { if (W.IsReady() && target.IsValidTarget(W.Range)) { W.Cast(); } } if (MariagiospaldaMenu.KillstealQ() && Q.IsReady() && target.Health + target.AttackShield + MariagiospaldaMenu.ComboQ1() < Player.GetSpellDamage(target, SpellSlot.Q)) { if (predQ.HitChance >= HitChance.High) { Q.Cast(target.Position); } } if (MariagiospaldaMenu.KillstealE() && E.IsReady() && target.Health + target.AttackShield < Player.GetSpellDamage(target, SpellSlot.E) && PiuwPiuwMissile == null && !MariagiospaldaMenu.ComboE2()) { if (predE.HitChance >= HitChance.High) { E.Cast(predE.CastPosition); } } } }