Returns the percentage effect for the player's current value of a given combat rating. Used in the default UI to show tooltips with actual percentage effects (such as increased parry chance or reduced critical strike damage taken) when mousing over rating information in the Character window.


See also Stat information functions.

Signature:

ratingBonus = GetCombatRatingBonus(ratingIndex)

Arguments:

  • ratingIndex - Index of a rating; the following global constants are provided for convenience (number)
    • CR_BLOCK - Block skill
    • CR_CRIT_MELEE - Melee critical strike chance
    • CR_CRIT_RANGED - Ranged critical strike chance
    • CR_CRIT_SPELL - Spell critical strike chance
    • CR_CRIT_TAKEN_MELEE - Melee Resilience
    • CR_CRIT_TAKEN_RANGED - Ranged Resilience
    • CR_CRIT_TAKEN_SPELL - Spell Resilience
    • CR_DEFENSE_SKILL - Defense skill
    • CR_DODGE - Dodge skill
    • CR_HASTE_MELEE - Melee haste
    • CR_HASTE_RANGED - Ranged haste
    • CR_HASTE_SPELL - Spell haste
    • CR_HIT_MELEE - Melee chance to hit
    • CR_HIT_RANGED - Ranged chance to hit
    • CR_HIT_SPELL - Spell chance to hit
    • CR_HIT_TAKEN_MELEE - Unused
    • CR_HIT_TAKEN_RANGED - Unused
    • CR_HIT_TAKEN_SPELL - Unused
    • CR_PARRY - Parry skill
    • CR_WEAPON_SKILL - Weapon skill
    • CR_WEAPON_SKILL_MAINHAND - Main-hand weapon skill
    • CR_WEAPON_SKILL_OFFHAND - Offhand weapon skill
    • CR_WEAPON_SKILL_RANGED - Ranged weapon skill

Returns:

  • ratingBonus - Percentage change in the underlying statistic or mechanic conferred by the player's rating value (number)