private static int GetMissChance(CharacterStats stats, Weapon weapon, Target target) { float missChance = MissChance(weapon.Skill, target); if (HasDualWieldPenalty(stats, target)) { missChance = AddDualWieldPenalty(missChance); } return(WowMath.ToIntTimesTen(missChance)); }
private static int MobDodge(Weapon weapon, Target target) => WowMath.ToIntTimesTen(5 + (target.Defence - weapon.Skill) * 0.1f);
private static int GlancingChance(CharacterStats stats, Target target) { return(WowMath.ToIntTimesTen(10 + (target.Defence - Math.Min(stats.Level * 5, stats.MainHandSkill) * 2))); }
private static int PlayerDodge(Weapon weapon, Target target) => WowMath.ToIntTimesTen(target.Dodge + (target.Defence - weapon.Skill) * 0.04f);