public static double GetPassiveDamage(this Obj_AI_Base target) { var count = target.CountPassive(); return count == 0 ? 0 : GetPassiveDamage(target, count); }
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; }
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; }