Пример #1
0
 public static double GetPassiveDamage(this Obj_AI_Base target)
 {
     var count = target.CountPassive();
     return count == 0 ? 0 : GetPassiveDamage(target, count);
 }
Пример #2
0
 public static double GetPassiveDamage(this AIHeroClient target, int? passiveCount = null)
 {
     var modifier = (.03f +
                     Math.Min(
                         Math.Max(
                             .028f,
                             .027 +
                             .001f * ObjectManager.Player.Level * ObjectManager.Player.FlatPhysicalDamageMod /
                             100f), .45f)) * target.MaxHealth;
     return passiveCount * modifier ?? target.CountPassive() * modifier;
 }
Пример #3
0
 public static double GetPassiveDamage(this Obj_AI_Base target, int? passiveCount = null)
 {
     return passiveCount ??
            target.CountPassive() *
            (.03f +
             (Math.Min(
                 Math.Max(
                     .028f,
                     (.027 +
                      .001f * ObjectManager.Player.Level * ObjectManager.Player.FlatPhysicalDamageMod / 100f)),
                 .45f))) * target.MaxHealth;
 }