Beispiel #1
0
        private static float GetHealthMultipler(Obj_AI_Hero target)
        {
            if (target.Health <= Damage.AutoAttack.GetDamage(target) * 2f)
            {
                return(20);
            }

            int spellCount = 0;

            if (IsKillableWithSpells(target, ref spellCount))
            {
                if (spellCount == 1)
                {
                    return(10);
                }
                else if (spellCount > 0)
                {
                    return(10 / (float)spellCount);
                }
            }

            if (target.HealthPercent <= 50 && target.GetRole() != ChampionRole.Tank)
            {
                return(10 / (target.HealthPercent + 1));
            }

            return(0);
        }
Beispiel #2
0
        private static float GetHealthMultipler(Obj_AI_Hero target)
        {
            if (target.Health <= ObjectManager.Player.GetAutoAttackDamage(target) * 2f)
            {
                return(20);
            }

            if (target.HealthPercent <= 50 && target.GetRole() != ChampionRole.Tank)
            {
                return(10 / (target.HealthPercent + 1));
            }

            return(0);
        }
Beispiel #3
0
        private static float GetHealthMultipler(Obj_AI_Hero target)
        {
            if (target.Health <= ObjectManager.Player.GetAutoAttackDamage(target) * 2f)
                return 20;

            if (target.HealthPercent <= 50 && target.GetRole() != ChampionRole.Tank)
                return 10 / (target.HealthPercent + 1);

            return 0;
        }
        private static float GetHealthMultipler(Obj_AI_Hero target)
        {
            if (target.Health <= Damage.AutoAttack.GetDamage(target) * 2f)
                return 20;

            int spellCount = 0;
            if (IsKillableWithSpells(target, ref spellCount))
            {
                if (spellCount == 1)
                    return 10;
                else if (spellCount > 0)
                {
                    return 10 / (float)spellCount;
                }
            }

            if (target.HealthPercent <= 50 && target.GetRole() != ChampionRole.Tank)
                return 10 / (target.HealthPercent + 1);

            return 0;
        }