Wowpedia
Advertisement
Wowpedia
240,485
pages

Returns the player's ranged critical hit chance.

critChance = GetRangedCritChance()
Game Flavors
Links
Patch
Added in 2.0.1 / 1.13.2

Parameters

None.

Returns

critChance
Number - The player's ranged critical hit chance, as a percentage; e.g. 5.3783211 corresponding to a ~5.38% crit chance.

Notes

If you are displaying this figure in a UI element and want it to update, hook to the UNIT_INVENTORY_CHANGED and SPELLS_CHANGED events as well as any other that effect equipment and buffs.

Formatting

To retrieve the ranged crit chance as a two-decimal float (like 10.25), use the following function:

myRangedCrit = format("%.2f%%", GetRangedCritChance());
Advertisement