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