Patchtimer43883@legacy41563607 (talk | contribs) No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
+ | {{wowapi}} |
||
=== Parameters === |
=== Parameters === |
||
Revision as of 00:24, 27 December 2006
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Parameters
None.
Returns
The players critical strike chance with the currently equipped range weapon as a floating point figure.
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());