Function ensureEffect

  • Tries to get an effect using the default method

    Parameters

    • ef: Effect

      effect to try to get

    • turns: number = 1

      turns to aim for; default of 1

    Returns void

    Throws an error if the effect cannot be guaranteed