API UnitRangedDamage

__NOTOC__
Returns the ranged attack speed and damage of the unit.
 speed, lowDmg, hiDmg, posBuff, negBuff, percent = UnitRangedDamage(player)
==Parameters==
===Arguments===
:;unit: : UnitId - The unit to get information from. (Likely only works for "player" and "pet" -- unconfirmed)
===Returns===
:;speed: - The unit's ranged weapon speed (0 if no ranged weapon equipped).
:;lowDmg: - The unit's minimum ranged damage.
:;hiDmg: - The unit's maximum ranged damage.
:;posBuff: - The unit's positive Bonus on ranged attacks (includes Spelldamage increases)
:;negBuff: - The unit's negative Bonus on ranged attacks
:;percent: - percentage modifier (usually 1)
==Example==
 local speed, lowDmg, hiDmg = UnitRangedDamage("player");
 local avgDmg = (lowDmg + hiDmg) / 2;
 local avgDps = avgDmg / speed;
===Result===
Calculates your average damage per second.