Returns the maximum possible percentage bonus for a given combat rating.
While this function can be applied to all combat ratings, it is currently only used in the default UI to account for the cap on (incoming) critical strike damage and mana drains provided by Resilience rating -- specifically, in generating the tooltip where Resilience rating is shown in the Character window (PaperDollFrame).
See also Stat information functions.
Signature:
max
=
GetMaxCombatRatingBonus(ratingIndex)
Arguments:
ratingIndex
- Which rating to query; the following global constants can be used for standard values: (number
)CR_BLOCK
- Block skillCR_CRIT_MELEE
- Melee critical strike chanceCR_CRIT_RANGED
- Ranged critical strike chanceCR_CRIT_SPELL
- Spell critical strike chanceCR_CRIT_TAKEN_MELEE
- Resilience (as applied to melee attacks)CR_CRIT_TAKEN_RANGED
- Resilience (as applied to ranged attacks)CR_CRIT_TAKEN_SPELL
- Resilience (as applied to spell effectsCR_DEFENSE_SKILL
- Defense skillCR_DODGE
- Dodge skillCR_HASTE_MELEE
- Melee hasteCR_HASTE_RANGED
- Ranged hasteCR_HASTE_SPELL
- Spell hasteCR_HIT_MELEE
- Melee chance to hitCR_HIT_RANGED
- Ranged chance to hitCR_HIT_SPELL
- Spell chance to hitCR_HIT_TAKEN_MELEE
- UnusedCR_HIT_TAKEN_RANGED
- UnusedCR_HIT_TAKEN_SPELL
- UnusedCR_PARRY
- Parry skillCR_WEAPON_SKILL
- Weapon skillCR_WEAPON_SKILL_MAINHAND
- Main-hand weapon skillCR_WEAPON_SKILL_OFFHAND
- Offhand weapon skillCR_WEAPON_SKILL_RANGED
- Ranged weapon skill
Returns:
max
- The maximum possible percentage bonus for the given rating (number
)