Function damageTakenByElement

  • Calculate damage taken from a specific element after factoring in resistance

    Parameters

    • baseDamage: number

      Base damage

    • element: Element

      Element

    Returns number

    damage after factoring in resistances