예제 #1
0
        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));
        }
예제 #2
0
 private static int MobDodge(Weapon weapon, Target target) => WowMath.ToIntTimesTen(5 + (target.Defence - weapon.Skill) * 0.1f);
예제 #3
0
 private static int GlancingChance(CharacterStats stats, Target target)
 {
     return(WowMath.ToIntTimesTen(10 + (target.Defence - Math.Min(stats.Level * 5, stats.MainHandSkill) * 2)));
 }
예제 #4
0
 private static int PlayerDodge(Weapon weapon, Target target) => WowMath.ToIntTimesTen(target.Dodge + (target.Defence - weapon.Skill) * 0.04f);