Пример #1
0
        /// <summary>
        /// Checks if enemy is killable from E and 3 Silver stacks
        /// </summary>
        /// <param name="unit"></param>
        /// <returns>True if enemy will die</returns>
        public static bool IsKillableFromSilverStacks(this AIHeroClient unit)
        {
            if (!unit.IsECastableOnEnemy())
            {
                return(false);
            }

            var edmg = Player.Instance.CalculateDamageOnUnit(unit, DamageType.Physical,
                                                             EBaseDamage[SpellManager.E.Level] + Player.Instance.FlatPhysicalDamageMod / 2);

            var damage = unit.CalculateWDamage() + edmg;

            return(unit.Health <= damage);
        }