Returns the bonus percentage for a specific combat rating.
bonus = GetCombatRatingBonus(combatRatingIdentifier)
Arguments
- combatRatingIdentifier
- number - One of the following values from
FrameXML/PaperDollFrame.lua
:
Value | Key | Description |
---|---|---|
CR_WEAPON_SKILL | Removed in patch 6.0.2 | |
CR_DEFENSE_SKILL | ||
CR_DODGE | ||
CR_PARRY | ||
CR_BLOCK | ||
CR_HIT_MELEE | ||
CR_HIT_RANGED | ||
CR_HIT_SPELL | ||
CR_CRIT_MELEE | ||
CR_CRIT_RANGED | ||
CR_CRIT_SPELL | ||
CR_MULTISTRIKE | Formerly CR_HIT_TAKEN_MELEE until patch 6.0.2 | |
CR_READINESS | Formerly CR_HIT_TAKEN_SPELL until patch 6.0.2 | |
CR_SPEED | Formerly CR_HIT_TAKEN_SPELL until patch 6.0.2 | |
COMBAT_RATING_RESILIENCE_CRIT_TAKEN | ||
COMBAT_RATING_RESILIENCE_PLAYER_DAMAGE_TAKEN | ||
CR_LIFESTEAL | Formerly CR_CRIT_TAKEN_SPELL until patch 6.0.2 | |
CR_HASTE_MELEE | ||
CR_HASTE_RANGED | ||
CR_HASTE_SPELL | ||
CR_AVOIDANCE | Formerly CR_WEAPON_SKILL_MAINHAND until patch 6.0.2 | |
CR_WEAPON_SKILL_OFFHAND | Removed in patch 6.0.2 | |
CR_WEAPON_SKILL_RANGED | ||
CR_EXPERTISE | ||
CR_ARMOR_PENETRATION | ||
CR_MASTERY | ||
CR_PVP_POWER | Removed in patch 6.0.2 | |
CR_VERSATILITY_DAMAGE_DONE | ||
CR_VERSATILITY_DAMAGE_TAKEN |
Returns
- bonus
- number - the actual bonus in percent the combat rating confers; e.g. 5.13452
Example
hitBonus = GetCombatRatingBonus(CR_HIT_MELEE)
Result
hitBonus = 5.13452
See also
- GetCombatRating: Get's the underlying rating that contributes to the bonus
- GetCritChance: Gets the players current Crit Chance %
- GetMastery: Get the player's current Mastery %
- GetDodgeChance: Gets the player's current Dodge Chance %
- GetParryChance: Gets the player's current Parry Chance %
- GetBlockChance: Gets the player's current Block Chance %