Exemplo n.º 1
0
        public static double GetComboDamage(this Obj_AI_Hero source, Obj_AI_Hero target)
        {
            double dmg = 0;

            if (SpellManager.Q.Ready && MenuManager.Combo["q"].Enabled)
            {
                dmg += source.GetQDamage(target);
            }
            if (SpellManager.W.Ready && MenuManager.Combo["w"].Enabled)
            {
                dmg += source.GetWDamage(target);
            }
            if (SpellManager.E.Ready && MenuManager.Combo["e"].Enabled)
            {
                dmg += source.GetEDamage(target);
            }
            if (SpellManager.R.Ready && MenuManager.Combo["r"].Enabled)
            {
                var rLevel           = source.SpellBook.GetSpell(SpellSlot.R).Level;
                var estimatedRDamage = (20 * rLevel + source.TotalAbilityDamage * 0.1) * 6;
                dmg += estimatedRDamage;
            }
            var aaDmg = source.GetAutoAttackDamage(target) * 2;

            dmg += aaDmg;
            return(dmg);
        }
Exemplo n.º 2
0
 internal static bool IsKillableWithE(this Obj_AI_Hero target, bool rangeCheck = false)
 {
     return(target.IsValidTarget(rangeCheck ? SpellManager.E.Range : float.MaxValue) &&
            target.Health + target.HPRegenRate + target.PhysicalShield < target.GetEDamage() &&
            !Invulnerable.Check(target, DamageType.Physical, false));
 }