Returns the ranged critical hit chance.
critChance = GetRangedCritChance()
- Number - The player's ranged critical hit chance, as a percentage; e.g. 5.3783211 corresponding to a ~5.38% crit chance.
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.
To retrieve the ranged crit chance as a two-decimal float (like 10.25), use the following function:
myRangedCrit = format("%.2f%%", GetRangedCritChance());