Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API GetCombatRating

From Wowpedia
Jump to: navigation, search

Returns the number of points of a specific combat rating the player has.

rating = GetCombatRating(combatRatingIdentifier)

Arguments

combatRatingIdentifier 
Number - A combat rating identifier from PaperDollFrame.lua, one of:
  • CR_UNUSED_1 = 1; (Formerly CR_WEAPON_SKILL. Removed in 6.0.2)
  • CR_DEFENSE_SKILL = 2;
  • CR_DODGE = 3;
  • CR_PARRY = 4;
  • CR_BLOCK = 5;
  • CR_HIT_MELEE = 6;
  • CR_HIT_RANGED = 7;
  • CR_HIT_SPELL = 8;
  • CR_CRIT_MELEE = 9;
  • CR_CRIT_RANGED = 10;
  • CR_CRIT_SPELL = 11;
  • CR_MULTISTRIKE = 12; (Formerly CR_HIT_TAKEN_MELEE. Changed in 6.0.2)
  • CR_READINESS = 13; (Formerly CR_HIT_TAKEN_RANGED. Changed in 6.0.2)
  • CR_SPEED = 14; (Formerly CR_HIT_TAKEN_SPELL. Changed in 6.0.2)
  • COMBAT_RATING_RESILIENCE_CRIT_TAKEN = 15;
  • COMBAT_RATING_RESILIENCE_PLAYER_DAMAGE_TAKEN = 16;
  • CR_LIFESTEAL = 17; (Formerly CR_CRIT_TAKEN_SPELL. Changed in 6.0.2)
  • CR_HASTE_MELEE = 18;
  • CR_HASTE_RANGED = 19;
  • CR_HASTE_SPELL = 20;
  • CR_AVOIDANCE = 21; (Formerly CR_WEAPON_SKILL_MAINHAND. Changed in 6.0.2)
  • CR_UNUSED_2 = 22; (Formerly CR_WEAPON_SKILL_OFFHAND. Removed in 6.0.2)
  • CR_WEAPON_SKILL_RANGED = 23;
  • CR_EXPERTISE = 24;
  • CR_ARMOR_PENETRATION = 25;
  • CR_MASTERY = 26;
  • CR_UNUSED_3 = 27; (Formerly CR_PVP_POWER. Removed in 6.0.2)
  • CR_UNUSED_4 = 28;
  • CR_VERSATILITY_DAMAGE_DONE = 29;
  • CR_VERSATILITY_DAMAGE_TAKEN = 31;

Returns

rating
Number - the actual rating for the combat rating; e.g. 63

Example

hitRating = GetCombatRating(CR_HIT_MELEE)

Result

hitRating = 63

See also

- GetCombatRatingBonus returns the `effect` of a particular rating