Calc
Attack Speed

asTotal

Calculates the total attack speed of a champion.

import { asTotal } from "@lolmath/calc";
 
asTotal(base, ratio, bonus, urfMode, isMelee)

Arguments

  • base (Number): Base attack speed
  • ratio (Number): Attack speed ratio
  • bonus (Number): Bonus attack speed
  • urfMode (Boolean): Is URF mode active?
  • isMelee (Boolean): Is the champion melee? (This is only used in URF mode)

Returns

(Number) Total attack speed